Project

General

Profile

RateLimit

This object provides get methods for a few useful properties of API RateLimit related to a user.

Twitter is limiting the number of calls a user can do to its API to avoid bots and spam usage.
Thus, each user is given a limited amount of calls to the API per hour. This limit is then resetted every hour, with a countdown starting from the first call.

getHourly()

Returns the maximum allowed per hour for this RateLimit

getLimit()

Returns the total number of calls left allowed for this RateLimit

getRemaining()

Returns the remaining time (in seconds) before reset for this RateLimit

getReset()

Return the date/time of reset for this RateLimit