Tuesday morning around 10am CDT I noticed a change in the API
endpoint /version/followers/ids in how it operates.
If you provide the cursor parameter, such as:
/1/followers/ids.json?cursor=-1&user_id=12345 the method returns data
correctly, however it also return the error warning "Invalid OAuth
credentials detected". Here is the response from the API.
"data":{
"responseText":"{\"previous_cursor\":0,\"next_cursor_str\":\"0\",
\"previous_cursor_str\":\"0\",\"ids\":
[222126862,95945240,169607024,148845934,95447204,94401716],
\"next_cursor\":0}",
"headers":{
"Date":"Wed, 15 Jun 2011 14:39:54 GMT",
"Server":"hi",
"Status":"200 OK",
"X-Warning":"Invalid OAuth credentials detected",
"X-Transaction":"1308148794-15054-58845",
"X-RateLimit-Limit":"150",
"X-Frame-Options":"SAMEORIGIN",
"Last-Modified":"Wed, 15 Jun 2011 14:39:54 GMT",
"X-RateLimit-Remaining":"66",
"X-Runtime":"0.02003",
"Content-Type":"application\/json; charset=utf-8",
"Content-Length":"150",
"Pragma":"no-cache",
"X-RateLimit-Class":"api",
"X-Revision":"DEV",
"Expires":"Tue, 31 Mar 1981 05:00:00 GMT",
"Cache-Control":"no-cache, no-store, must-revalidate, pre-
check=0, post-check=0",
"X-MID":"c7827d770b9045b049f3967663b08dce7704a9fb",
"X-RateLimit-Reset":"1308150383",
"Vary":"Accept-Encoding",
"Connection":"close"
},
The problem here is that because it thinks the OAuth credentials are
"Invalid" it gives me a rate limit of 150.
If I remove the parameters "?cursor=-1&user_id=12345" and simply use
the endpoint /1/followers/ids.json it accepts my OAuth credentials as
valid and and returns the appropriate rate limit of 350. Although this
works, I need pagination as there are a lot of ids I need to retrieve.
This had been working correctly and I noticed the change yesterday
morning.
Any help on resolving this or letting me know if something has changed
when parameters are used with this endpoint would be greatly
appreciated.
Thanks,
Jeff
--
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group:
https://groups.google.com/forum/#!forum/twitter-development-talk