plu / Pithub

Perl Github v3 API

Home Page:http://metacpan.org/module/Pithub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: method to query rate_limit

jjatria opened this issue · comments

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.

Looks good!