plu / Pithub

Perl Github v3 API
http://metacpan.org/module/Pithub
Other
68 stars 36 forks source link

Feature: method to query rate_limit #202

Closed jjatria closed 6 years ago

jjatria commented 6 years ago

Pithub does not currently have a method to query the current API rate_limit for the authentication method in use.

A rate_limit method could be added to Pithub::Base that used request method to call the rate limit endpoint. This would enable any Pithub object to get information on the rate limit for whatever authentication method was active for that object.

An initial implementation of this feature is already in place in a local branch. If this seems OK, I'd be happy to submit a PR for this to be added.

oalders commented 6 years ago

Looks good!