{"action":"created","issue":{"url":"https://api.github.com/repos/KnpLabs/php-github-api/issues/349","labels_url":"https://api.github.com/repos/KnpLabs/php-github-api/issues/349/labels{/name}","comments_url":"https://api.github.com/repos/KnpLabs/php-github-api/issues/349/comments","events_url":"https://api.github.com/repos/KnpLabs/php-github-api/issues/349/events","html_url":"https://github.com/KnpLabs/php-github-api/issues/349","id":124759341,"number":349,"title":"\"202 Accepted\" on getting repository activity","user":{"login":"ostretsov","id":229966,"avatar_url":"https://avatars.githubusercontent.com/u/229966?v=3","gravatar_id":"","url":"https://api.github.com/users/ostretsov","html_url":"https://github.com/ostretsov","followers_url":"https://api.github.com/users/ostretsov/followers","following_url":"https://api.github.com/users/ostretsov/following{/other_user}","gists_url":"https://api.github.com/users/ostretsov/gists{/gist_id}","starred_url":"https://api.github.com/users/ostretsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ostretsov/subscriptions","organizations_url":"https://api.github.com/users/ostretsov/orgs","repos_url":"https://api.github.com/users/ostretsov/repos","events_url":"https://api.github.com/users/ostretsov/events{/privacy}","received_events_url":"https://api.github.com/users/ostretsov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-04T13:32:44Z","updated_at":"2016-01-04T13:59:01Z","closed_at":null,"body":"When I try to get repository activity with the following code:\r\n```php\r\n$client->api('repo')->activity($username, $repository);\r\n```\r\nit may return 202 (Accepted) status code as [described in official documentation](https://developer.github.com/v3/repos/statistics/#a-word-about-caching). 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?\r\n\r\nCan PR if needed."},"comment":{"url":"https://api.github.com/repos/KnpLabs/php-github-api/issues/comments/168683412","html_url":"https://github.com/KnpLabs/php-github-api/issues/349#issuecomment-168683412","issue_url":"https://api.github.com/repos/KnpLabs/php-github-api/issues/349","id":168683412,"user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T13:59:01Z","updated_at":"2016-01-04T13:59:01Z","body":"I think it's up to the library consumer to retry later once github have calculated the activity."}}