Paul Wise wrote:
> It would be great if github-backup could wait until the UNIX timestamp
> from the X-RateLimit-Reset HTTP header when the X-RateLimit-Remaining
> HTTP header reaches zero.

Yes, it really would. Unfortunately the github library that I am using
does not export this information, so I can't.

Here's the bug about that:
https://github.com/fpco/github/issues/8

Note that github-backup will record failed requests, and retry them
first next time it's run. This should mostly let it recover from being
rate limited.

> It would be great if I could specify some login credentials for Basic
> Authentication or OAuth.

Here's the bug about that:
https://github.com/fpco/github/pull/23

> I can't tell if github-backup is doing this already but it would be
> great if github-backup could use the Last-Modified, ETag,
> If-Modified-Since and If-None-Match HTTP headers to only incur an API
> rate limit penalty when there has been an update to the data:
> 
> https://developer.github.com/v3/#conditional-requests

This is not done (or supported by the github library).
I'm not sure what info I would need to preserve in github-backup to be
able to set do this. Seems I would need to cache the last time I asked
for every item.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to