Sunday, May 1, 2011

Re: [twitter-dev] API requests redirect my server to /suspended

Hey Thomas,

"/statuses" is not a valid API endpoint, and our routing system assumes you're trying to reach the "statuses" account, which is suspended (cf http://twitter.com/statuses).

Take a look on our timeline resources on http://dev.twitter.com/doc and use one of these endpoints (for example "/1/statuses/public_timeline.json") instead.

Arnaud / @rno



On Sun, May 1, 2011 at 7:23 AM, Thomas Feron <tho.feron@gmail.com> wrote:
Hello,

My application currently gets an access token and save it to a
database for each member of my website. I checked the access tokens
saved for my account and the ones in Your Apps > MyApp > My Access
Token and they are correct. My account is not suspended and there is
nothing on my application's page which says that it is suspended
neither.

I don't understand why I am redirected to /suspended when I request a
page like /statuses while both of my account and my app are accepted.

Is there anybody who can explain my problem ?

I'm developing in Ruby using the OAuth gem. I do something like :
OAuth::AccessToken.new(MyApp::Application.twitter_consumer, db_token,
db_token_secret).get('/statuses')
with the MyApp::Application.twitter_consumer method returning :
OAuth::Consumer.new(consumer_key, consumer_secret, { :site => 'https://
api.twitter.com' })

Thank you,

--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: http://groups.google.com/group/twitter-development-talk

--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: http://groups.google.com/group/twitter-development-talk

No comments:

Post a Comment