php-github-api
php-github-api copied to clipboard
"202 Accepted" on getting repository activity
When I try to get repository activity with the following code:
$client->api('repo')->activity($username, $repository);
it may return 202 (Accepted) status code as described in official documentation. Should that library manage with that problem (let's say with additional third argument to delay between requests until 200 status code) or it's client-side problem?
Can PR if needed.
I don't think this is a bug in the library.
I think it's up to the library consumer to retry later once github have calculated the activity.