-
-
Notifications
You must be signed in to change notification settings - Fork 599
MINOR Add structured Limit objects for rate limiting API, deprecate getRateLimits() #733
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
MINOR Add structured Limit objects for rate limiting API, deprecate getRateLimits() #733
Conversation
cd6dac7
to
d2f55a5
Compare
…etRateLimits() This adds structured link objects for each of the rate limiting resources that is returned from GitHub, including adding GraphQL. The previous methods are still backwards compatible and working, but are now deprecated in favour of the new methods.
d2f55a5
to
bed4454
Compare
#### Get GraphQL Rate Limit | ||
|
||
```php | ||
$searchLimit = $client->api('rate_limit')->getResource('graphql')->getLimit(); |
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.
Is there an resource for graphql included in the rest api result? I can't find it in the docs
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.
Yep, you're right it's not in there - not sure why. It is in the results of the existing API result from using this SDK though.
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.
Yes indeed I've just checked it with a curl call. So let's keep it in the docs!
1637257
to
ce8f418
Compare
ce8f418
to
121d814
Compare
Thanks @robbieaverill |
Thanks for reviewing! |
This adds structured link objects for each of the rate limiting resources that is returned from GitHub, including adding GraphQL. The previous methods are still backwards compatible and working, but are now deprecated in favour of the new methods.