php-github-api icon indicating copy to clipboard operation
php-github-api copied to clipboard

"202 Accepted" on getting repository activity

Open ostretsov opened this issue 10 years ago • 2 comments

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.

ostretsov avatar Jan 04 '16 13:01 ostretsov

I don't think this is a bug in the library.

GrahamCampbell avatar Jan 04 '16 13:01 GrahamCampbell

I think it's up to the library consumer to retry later once github have calculated the activity.

GrahamCampbell avatar Jan 04 '16 13:01 GrahamCampbell