-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Hi,
I'm using scribejava to authenticate and hit endpoints for Twitter. A couple of the endpoints take a "count" parameter, such as "https://api.twitter.com/1.1/followers/list.json". If I add this parameter, I get an unauthorized response, but it works without. A google search came back that perhaps the parameters have to be in alphabetical order. Is there a way to do that with an OAuthRequest? To send the "count" param before the oauth parameters and other parameters. Here is a snippet doing the request:
OAuthRequest request = new OAuthRequest(Verb.GET, "https://api.twitter.com/1.1/followers/list.json");
request.addQuerystringParameter("screen_name", "user name");
service.signRequest(token, request);
Subsequent calls add on the "cursor" param to get the next page, but adding "count" there or before the screen name gives unauthorized or is ignored.
request.addQuerystringParameter("count", "100");
If this is beyond the scope of the library or better put on the twitter forum, I can try there.
Thanks!