forked from mkellerman/PSTwitterAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Each Twitter API endpoint has a specific rate limit for the standard API.
You can find more information on Twitter's standard API rate limiting here.
For instance, here are the rate limits for lists endpoints.
/lists/list : @{limit=15; remaining=0; reset=1552260236}
/lists/memberships : @{limit=75; remaining=75; reset=1552260742}
/lists/subscribers/show : @{limit=15; remaining=15; reset=1552260742}
/lists/members : @{limit=900; remaining=900; reset=1552260742}
/lists/subscriptions : @{limit=15; remaining=15; reset=1552260742}
/lists/show : @{limit=75; remaining=75; reset=1552260742}
/lists/ownerships : @{limit=15; remaining=15; reset=1552260742}
/lists/subscribers : @{limit=180; remaining=180; reset=1552260742}
/lists/members/show : @{limit=15; remaining=15; reset=1552260742}
/lists/statuses : @{limit=900; remaining=900; reset=1552260742}After reaching the limit, the current Invoke-TwitterAPI calling function generates an error similar to the following:
Invoke-RestMethod : {"errors":[{"message":"Rate limit exceeded","code":88}]}
At C:\Program Files\PowerShell\Modules\PSTwitterAPI\0.0.7\public\Invoke-TwitterAPI.ps1:34 char:5
+ Invoke-RestMethod @RestMethod_Params
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Method: GET, Re...rShell/6.1.2
}:HttpRequestMessage) [Invoke-RestMethod], HttpResponseException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommandHow should rate limits be handled?
Metadata
Metadata
Assignees
Labels
No labels