{"action":"reopened","number":22,"pull_request":{"url":"https://api.github.com/repos/stacktic/dropbox/pulls/22","id":48383535,"html_url":"https://github.com/stacktic/dropbox/pull/22","diff_url":"https://github.com/stacktic/dropbox/pull/22.diff","patch_url":"https://github.com/stacktic/dropbox/pull/22.patch","issue_url":"https://api.github.com/repos/stacktic/dropbox/issues/22","number":22,"state":"open","locked":false,"title":"Add ability to retrieve rate limit header Retry-After from Error","user":{"login":"doykle","id":7545321,"avatar_url":"https://avatars.githubusercontent.com/u/7545321?v=3","gravatar_id":"","url":"https://api.github.com/users/doykle","html_url":"https://github.com/doykle","followers_url":"https://api.github.com/users/doykle/followers","following_url":"https://api.github.com/users/doykle/following{/other_user}","gists_url":"https://api.github.com/users/doykle/gists{/gist_id}","starred_url":"https://api.github.com/users/doykle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doykle/subscriptions","organizations_url":"https://api.github.com/users/doykle/orgs","repos_url":"https://api.github.com/users/doykle/repos","events_url":"https://api.github.com/users/doykle/events{/privacy}","received_events_url":"https://api.github.com/users/doykle/received_events","type":"User","site_admin":false},"body":"In Dropbox's [Core API best practices](https://www.dropbox.com/developers-v1/core/bestpractices) there is a statement:\r\n>_\"Apps that hit the rate limits will receive a 503 error which uses the Retry-After header to indicate exactly when it's okay to start making requests again.\"_\r\n\r\nThis pull request makes it possible to retrieve the Retry-After header value from the returned Error struct.\r\n\r\nThe most significant change to function is the addition on lines 755-757. The error is returned where before it was not. ","created_at":"2015-10-21T20:30:51Z","updated_at":"2015-10-22T14:36:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"974bd8a3cf5320ba8cdd7dd919ae35f5b4fc1170","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stacktic/dropbox/pulls/22/commits","review_comments_url":"https://api.github.com/repos/stacktic/dropbox/pulls/22/comments","review_comment_url":"https://api.github.com/repos/stacktic/dropbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stacktic/dropbox/issues/22/comments","statuses_url":"https://api.github.com/repos/stacktic/dropbox/statuses/87d5d8239c75cfb845902ed8baa56c51a4310008","head":{"label":"rastech:rate-limit-error","ref":"rate-limit-error","sha":"87d5d8239c75cfb845902ed8baa56c51a4310008","user":{"login":"rastech","id":7895061,"avatar_url":"https://avatars.githubusercontent.com/u/7895061?v=3","gravatar_id":"","url":"https://api.github.com/users/rastech","html_url":"https://github.com/rastech","followers_url":"https://api.github.com/users/rastech/followers","following_url":"https://api.github.com/users/rastech/following{/other_user}","gists_url":"https://api.github.com/users/rastech/gists{/gist_id}","starred_url":"https://api.github.com/users/rastech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rastech/subscriptions","organizations_url":"https://api.github.com/users/rastech/orgs","repos_url":"https://api.github.com/users/rastech/repos","events_url":"https://api.github.com/users/rastech/events{/privacy}","received_events_url":"https://api.github.com/users/rastech/received_events","type":"Organization","site_admin":false},"repo":{"id":44641035,"name":"dropbox","full_name":"rastech/dropbox","owner":{"login":"rastech","id":7895061,"avatar_url":"https://avatars.githubusercontent.com/u/7895061?v=3","gravatar_id":"","url":"https://api.github.com/users/rastech","html_url":"https://github.com/rastech","followers_url":"https://api.github.com/users/rastech/followers","following_url":"https://api.github.com/users/rastech/following{/other_user}","gists_url":"https://api.github.com/users/rastech/gists{/gist_id}","starred_url":"https://api.github.com/users/rastech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rastech/subscriptions","organizations_url":"https://api.github.com/users/rastech/orgs","repos_url":"https://api.github.com/users/rastech/repos","events_url":"https://api.github.com/users/rastech/events{/privacy}","received_events_url":"https://api.github.com/users/rastech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rastech/dropbox","description":"Go (golang) client library for the Dropbox core and Datastore API with support for uploading and downloading encrypted files.","fork":true,"url":"https://api.github.com/repos/rastech/dropbox","forks_url":"https://api.github.com/repos/rastech/dropbox/forks","keys_url":"https://api.github.com/repos/rastech/dropbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rastech/dropbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rastech/dropbox/teams","hooks_url":"https://api.github.com/repos/rastech/dropbox/hooks","issue_events_url":"https://api.github.com/repos/rastech/dropbox/issues/events{/number}","events_url":"https://api.github.com/repos/rastech/dropbox/events","assignees_url":"https://api.github.com/repos/rastech/dropbox/assignees{/user}","branches_url":"https://api.github.com/repos/rastech/dropbox/branches{/branch}","tags_url":"https://api.github.com/repos/rastech/dropbox/tags","blobs_url":"https://api.github.com/repos/rastech/dropbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rastech/dropbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rastech/dropbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/rastech/dropbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rastech/dropbox/statuses/{sha}","languages_url":"https://api.github.com/repos/rastech/dropbox/languages","stargazers_url":"https://api.github.com/repos/rastech/dropbox/stargazers","contributors_url":"https://api.github.com/repos/rastech/dropbox/contributors","subscribers_url":"https://api.github.com/repos/rastech/dropbox/subscribers","subscription_url":"https://api.github.com/repos/rastech/dropbox/subscription","commits_url":"https://api.github.com/repos/rastech/dropbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/rastech/dropbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/rastech/dropbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/rastech/dropbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/rastech/dropbox/contents/{+path}","compare_url":"https://api.github.com/repos/rastech/dropbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rastech/dropbox/merges","archive_url":"https://api.github.com/repos/rastech/dropbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rastech/dropbox/downloads","issues_url":"https://api.github.com/repos/rastech/dropbox/issues{/number}","pulls_url":"https://api.github.com/repos/rastech/dropbox/pulls{/number}","milestones_url":"https://api.github.com/repos/rastech/dropbox/milestones{/number}","notifications_url":"https://api.github.com/repos/rastech/dropbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rastech/dropbox/labels{/name}","releases_url":"https://api.github.com/repos/rastech/dropbox/releases{/id}","created_at":"2015-10-20T23:36:02Z","updated_at":"2015-10-20T23:36:02Z","pushed_at":"2015-10-22T00:50:20Z","git_url":"git://github.com/rastech/dropbox.git","ssh_url":"git@github.com:rastech/dropbox.git","clone_url":"https://github.com/rastech/dropbox.git","svn_url":"https://github.com/rastech/dropbox","homepage":"","size":481,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"stacktic:master","ref":"master","sha":"b7d75fe25567416e18bf8eac04bd19cbda425214","user":{"login":"stacktic","id":1688320,"avatar_url":"https://avatars.githubusercontent.com/u/1688320?v=3","gravatar_id":"","url":"https://api.github.com/users/stacktic","html_url":"https://github.com/stacktic","followers_url":"https://api.github.com/users/stacktic/followers","following_url":"https://api.github.com/users/stacktic/following{/other_user}","gists_url":"https://api.github.com/users/stacktic/gists{/gist_id}","starred_url":"https://api.github.com/users/stacktic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stacktic/subscriptions","organizations_url":"https://api.github.com/users/stacktic/orgs","repos_url":"https://api.github.com/users/stacktic/repos","events_url":"https://api.github.com/users/stacktic/events{/privacy}","received_events_url":"https://api.github.com/users/stacktic/received_events","type":"User","site_admin":false},"repo":{"id":17000934,"name":"dropbox","full_name":"stacktic/dropbox","owner":{"login":"stacktic","id":1688320,"avatar_url":"https://avatars.githubusercontent.com/u/1688320?v=3","gravatar_id":"","url":"https://api.github.com/users/stacktic","html_url":"https://github.com/stacktic","followers_url":"https://api.github.com/users/stacktic/followers","following_url":"https://api.github.com/users/stacktic/following{/other_user}","gists_url":"https://api.github.com/users/stacktic/gists{/gist_id}","starred_url":"https://api.github.com/users/stacktic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stacktic/subscriptions","organizations_url":"https://api.github.com/users/stacktic/orgs","repos_url":"https://api.github.com/users/stacktic/repos","events_url":"https://api.github.com/users/stacktic/events{/privacy}","received_events_url":"https://api.github.com/users/stacktic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stacktic/dropbox","description":"Go (golang) client library for the Dropbox core and Datastore API with support for uploading and downloading encrypted files.","fork":false,"url":"https://api.github.com/repos/stacktic/dropbox","forks_url":"https://api.github.com/repos/stacktic/dropbox/forks","keys_url":"https://api.github.com/repos/stacktic/dropbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stacktic/dropbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stacktic/dropbox/teams","hooks_url":"https://api.github.com/repos/stacktic/dropbox/hooks","issue_events_url":"https://api.github.com/repos/stacktic/dropbox/issues/events{/number}","events_url":"https://api.github.com/repos/stacktic/dropbox/events","assignees_url":"https://api.github.com/repos/stacktic/dropbox/assignees{/user}","branches_url":"https://api.github.com/repos/stacktic/dropbox/branches{/branch}","tags_url":"https://api.github.com/repos/stacktic/dropbox/tags","blobs_url":"https://api.github.com/repos/stacktic/dropbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stacktic/dropbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stacktic/dropbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/stacktic/dropbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stacktic/dropbox/statuses/{sha}","languages_url":"https://api.github.com/repos/stacktic/dropbox/languages","stargazers_url":"https://api.github.com/repos/stacktic/dropbox/stargazers","contributors_url":"https://api.github.com/repos/stacktic/dropbox/contributors","subscribers_url":"https://api.github.com/repos/stacktic/dropbox/subscribers","subscription_url":"https://api.github.com/repos/stacktic/dropbox/subscription","commits_url":"https://api.github.com/repos/stacktic/dropbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/stacktic/dropbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/stacktic/dropbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/stacktic/dropbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/stacktic/dropbox/contents/{+path}","compare_url":"https://api.github.com/repos/stacktic/dropbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stacktic/dropbox/merges","archive_url":"https://api.github.com/repos/stacktic/dropbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stacktic/dropbox/downloads","issues_url":"https://api.github.com/repos/stacktic/dropbox/issues{/number}","pulls_url":"https://api.github.com/repos/stacktic/dropbox/pulls{/number}","milestones_url":"https://api.github.com/repos/stacktic/dropbox/milestones{/number}","notifications_url":"https://api.github.com/repos/stacktic/dropbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stacktic/dropbox/labels{/name}","releases_url":"https://api.github.com/repos/stacktic/dropbox/releases{/id}","created_at":"2014-02-19T22:12:56Z","updated_at":"2015-10-20T14:29:39Z","pushed_at":"2015-10-22T14:36:51Z","git_url":"git://github.com/stacktic/dropbox.git","ssh_url":"git@github.com:stacktic/dropbox.git","clone_url":"https://github.com/stacktic/dropbox.git","svn_url":"https://github.com/stacktic/dropbox","homepage":"","size":481,"stargazers_count":60,"watchers_count":60,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":4,"forks":18,"open_issues":4,"watchers":60,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stacktic/dropbox/pulls/22"},"html":{"href":"https://github.com/stacktic/dropbox/pull/22"},"issue":{"href":"https://api.github.com/repos/stacktic/dropbox/issues/22"},"comments":{"href":"https://api.github.com/repos/stacktic/dropbox/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/stacktic/dropbox/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/stacktic/dropbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stacktic/dropbox/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/stacktic/dropbox/statuses/87d5d8239c75cfb845902ed8baa56c51a4310008"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":7,"additions":16,"deletions":11,"changed_files":1}}