Skip to content
This repository has been archived by the owner on Feb 13, 2018. It is now read-only.

Add response object to getTimeline #34

Merged
merged 1 commit into from
Apr 11, 2016
Merged

Add response object to getTimeline #34

merged 1 commit into from
Apr 11, 2016

Conversation

kolarski
Copy link
Contributor

@kolarski kolarski commented Apr 9, 2016

Response object contains the important Twitter headers:
X-Rate-Limit-Limit: the rate limit ceiling for that given request
X-Rate-Limit-Remaining: the number of requests left for the 15 minute window
X-Rate-Limit-Reset: the remaining window before the rate limit resets in UTC epoch seconds

(https://dev.twitter.com/rest/public/rate-limiting)

Which can be used to rate limit the usage of the library. Without the response object there is no other way to obtain the twitter rate numbers.

Response object contains the important Twitter headers:
*X-Rate-Limit-Limit*: the rate limit ceiling for that given request
*X-Rate-Limit-Remaining*: the number of requests left for the 15 minute window
*X-Rate-Limit-Reset*: the remaining window before the rate limit resets in UTC epoch seconds

Which can be used to rate limit the usage of the library. Without the response object there is not other way to obtain the twitter rate numbers.
@reneraab reneraab merged commit 65357b9 into reneraab:master Apr 11, 2016
reneraab added a commit that referenced this pull request Apr 11, 2016
* Add response object to getTimeline (@kolarski) #34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants