-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix library to work with API changes after 17 Nov 2015 #204
base: master
Are you sure you want to change the base?
Conversation
florianbeer
commented
Mar 8, 2016
- Add new permission scopes
- Require access token for all endpoints
- Remove deprecated endpoints
- Fix parameters for endpoints
- Fix pagination
Fix error IN getUserMedia API
Please approve this request |
I agree, I was about to make a PR to add new permission scopes and I saw this. |
Bring back "xRateLimitRemaining" data
} | ||
|
||
return $this->_makeCall($function, $auth, array('cursor' => $obj->pagination->next_cursor, 'count' => $limit)); | ||
return $this->_makeCall($function, array('next_max_id' => $obj->pagination->next_max_id, 'count' => $count)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pagination call is made with a parameter named "next_max_id". It seems that it should be named "max_id". For example, see the parameters for the "/users/self/media/recent/" endpoint. Am I missing something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pagination seems to work for me, but maybe I didn't use that endpoint yet.
Did you test it out? What is the error message you are getting back from the Twitter API?
If this is indeed an error, please make a pull request with the changed parameter name.
Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get any error from Instagram, but each pagination call returns the same batch of results. Changing "next_max_id" to "max_id" allowed me to get the next batch of items in the paginated list.
Readme states that `getUserFollows()` and `getUserFollower()` accepts an `$id` and `$limit`, however these were never used. Also, nothing was ever returned.
Fixes getUserFollows and getUserFollower
…rties are used in _makeOAuthCall() and _makeCall().
Added Proxy functionaly.