{"action":"reopened","number":9,"pull_request":{"url":"https://api.github.com/repos/box/box-python-sdk/pulls/9","id":29339397,"html_url":"https://github.com/box/box-python-sdk/pull/9","diff_url":"https://github.com/box/box-python-sdk/pull/9.diff","patch_url":"https://github.com/box/box-python-sdk/pull/9.patch","issue_url":"https://api.github.com/repos/box/box-python-sdk/issues/9","number":9,"state":"open","locked":false,"title":"Improve the paging API","user":{"login":"potrebic","id":2244693,"avatar_url":"https://avatars.githubusercontent.com/u/2244693?v=3","gravatar_id":"","url":"https://api.github.com/users/potrebic","html_url":"https://github.com/potrebic","followers_url":"https://api.github.com/users/potrebic/followers","following_url":"https://api.github.com/users/potrebic/following{/other_user}","gists_url":"https://api.github.com/users/potrebic/gists{/gist_id}","starred_url":"https://api.github.com/users/potrebic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/potrebic/subscriptions","organizations_url":"https://api.github.com/users/potrebic/orgs","repos_url":"https://api.github.com/users/potrebic/repos","events_url":"https://api.github.com/users/potrebic/events{/privacy}","received_events_url":"https://api.github.com/users/potrebic/received_events","type":"User","site_admin":false},"body":"All clients to know exactly when GET calls might be triggered when\r\none of the pageable-APIs is used. This is achieved by returning\r\ninformation about the *current* page on each call to 'next()' of\r\nthe underlying generator. The first call might return:\r\n   <object>, 10, 0\r\nindicating this object is the 0th indexed item in the current page\r\nthat has 10 items. This means that previous API returned info\r\nabout 10 such items. The subsequent call to next() would return:\r\n   <object>, 10, 1\r\nAnd so forth. Eventually returning:\r\n   <object>, 10, 9\r\n\r\nAt this point, the next time next() is called a new GET request\r\nwill be trigger in order to fetch the next *page* of results. This\r\nmight then return:\r\n   <object>, 12, 0\r\nindicating that this next *page* has 12 results.","created_at":"2015-02-15T19:22:44Z","updated_at":"2015-02-15T21:55:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a0f2bc88bf3783df6a81eda7281907c8a44c7984","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/box/box-python-sdk/pulls/9/commits","review_comments_url":"https://api.github.com/repos/box/box-python-sdk/pulls/9/comments","review_comment_url":"https://api.github.com/repos/box/box-python-sdk/pulls/comments/{number}","comments_url":"https://api.github.com/repos/box/box-python-sdk/issues/9/comments","statuses_url":"https://api.github.com/repos/box/box-python-sdk/statuses/f0e93b13616f7cdb0f9f476b78834eae96dc67f8","head":{"label":"box:paging","ref":"paging","sha":"f0e93b13616f7cdb0f9f476b78834eae96dc67f8","user":{"login":"box","id":23900,"avatar_url":"https://avatars.githubusercontent.com/u/23900?v=3","gravatar_id":"","url":"https://api.github.com/users/box","html_url":"https://github.com/box","followers_url":"https://api.github.com/users/box/followers","following_url":"https://api.github.com/users/box/following{/other_user}","gists_url":"https://api.github.com/users/box/gists{/gist_id}","starred_url":"https://api.github.com/users/box/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/box/subscriptions","organizations_url":"https://api.github.com/users/box/orgs","repos_url":"https://api.github.com/users/box/repos","events_url":"https://api.github.com/users/box/events{/privacy}","received_events_url":"https://api.github.com/users/box/received_events","type":"Organization","site_admin":false},"repo":{"id":30386388,"name":"box-python-sdk","full_name":"box/box-python-sdk","owner":{"login":"box","id":23900,"avatar_url":"https://avatars.githubusercontent.com/u/23900?v=3","gravatar_id":"","url":"https://api.github.com/users/box","html_url":"https://github.com/box","followers_url":"https://api.github.com/users/box/followers","following_url":"https://api.github.com/users/box/following{/other_user}","gists_url":"https://api.github.com/users/box/gists{/gist_id}","starred_url":"https://api.github.com/users/box/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/box/subscriptions","organizations_url":"https://api.github.com/users/box/orgs","repos_url":"https://api.github.com/users/box/repos","events_url":"https://api.github.com/users/box/events{/privacy}","received_events_url":"https://api.github.com/users/box/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/box/box-python-sdk","description":"Box SDK for Python","fork":false,"url":"https://api.github.com/repos/box/box-python-sdk","forks_url":"https://api.github.com/repos/box/box-python-sdk/forks","keys_url":"https://api.github.com/repos/box/box-python-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/box/box-python-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/box/box-python-sdk/teams","hooks_url":"https://api.github.com/repos/box/box-python-sdk/hooks","issue_events_url":"https://api.github.com/repos/box/box-python-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/box/box-python-sdk/events","assignees_url":"https://api.github.com/repos/box/box-python-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/box/box-python-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/box/box-python-sdk/tags","blobs_url":"https://api.github.com/repos/box/box-python-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/box/box-python-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/box/box-python-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/box/box-python-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/box/box-python-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/box/box-python-sdk/languages","stargazers_url":"https://api.github.com/repos/box/box-python-sdk/stargazers","contributors_url":"https://api.github.com/repos/box/box-python-sdk/contributors","subscribers_url":"https://api.github.com/repos/box/box-python-sdk/subscribers","subscription_url":"https://api.github.com/repos/box/box-python-sdk/subscription","commits_url":"https://api.github.com/repos/box/box-python-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/box/box-python-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/box/box-python-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/box/box-python-sdk/issues/comments/{number}","contents_url":"https://api.github.com/repos/box/box-python-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/box/box-python-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/box/box-python-sdk/merges","archive_url":"https://api.github.com/repos/box/box-python-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/box/box-python-sdk/downloads","issues_url":"https://api.github.com/repos/box/box-python-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/box/box-python-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/box/box-python-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/box/box-python-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/box/box-python-sdk/labels{/name}","releases_url":"https://api.github.com/repos/box/box-python-sdk/releases{/id}","created_at":"2015-02-06T00:30:55Z","updated_at":"2015-02-13T23:46:31Z","pushed_at":"2015-02-15T19:22:25Z","git_url":"git://github.com/box/box-python-sdk.git","ssh_url":"git@github.com:box/box-python-sdk.git","clone_url":"https://github.com/box/box-python-sdk.git","svn_url":"https://github.com/box/box-python-sdk","homepage":null,"size":1539,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":8,"default_branch":"master"}},"base":{"label":"box:master","ref":"master","sha":"0549263e99413b3fa7ec577c0ac42df75506469b","user":{"login":"box","id":23900,"avatar_url":"https://avatars.githubusercontent.com/u/23900?v=3","gravatar_id":"","url":"https://api.github.com/users/box","html_url":"https://github.com/box","followers_url":"https://api.github.com/users/box/followers","following_url":"https://api.github.com/users/box/following{/other_user}","gists_url":"https://api.github.com/users/box/gists{/gist_id}","starred_url":"https://api.github.com/users/box/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/box/subscriptions","organizations_url":"https://api.github.com/users/box/orgs","repos_url":"https://api.github.com/users/box/repos","events_url":"https://api.github.com/users/box/events{/privacy}","received_events_url":"https://api.github.com/users/box/received_events","type":"Organization","site_admin":false},"repo":{"id":30386388,"name":"box-python-sdk","full_name":"box/box-python-sdk","owner":{"login":"box","id":23900,"avatar_url":"https://avatars.githubusercontent.com/u/23900?v=3","gravatar_id":"","url":"https://api.github.com/users/box","html_url":"https://github.com/box","followers_url":"https://api.github.com/users/box/followers","following_url":"https://api.github.com/users/box/following{/other_user}","gists_url":"https://api.github.com/users/box/gists{/gist_id}","starred_url":"https://api.github.com/users/box/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/box/subscriptions","organizations_url":"https://api.github.com/users/box/orgs","repos_url":"https://api.github.com/users/box/repos","events_url":"https://api.github.com/users/box/events{/privacy}","received_events_url":"https://api.github.com/users/box/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/box/box-python-sdk","description":"Box SDK for Python","fork":false,"url":"https://api.github.com/repos/box/box-python-sdk","forks_url":"https://api.github.com/repos/box/box-python-sdk/forks","keys_url":"https://api.github.com/repos/box/box-python-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/box/box-python-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/box/box-python-sdk/teams","hooks_url":"https://api.github.com/repos/box/box-python-sdk/hooks","issue_events_url":"https://api.github.com/repos/box/box-python-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/box/box-python-sdk/events","assignees_url":"https://api.github.com/repos/box/box-python-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/box/box-python-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/box/box-python-sdk/tags","blobs_url":"https://api.github.com/repos/box/box-python-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/box/box-python-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/box/box-python-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/box/box-python-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/box/box-python-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/box/box-python-sdk/languages","stargazers_url":"https://api.github.com/repos/box/box-python-sdk/stargazers","contributors_url":"https://api.github.com/repos/box/box-python-sdk/contributors","subscribers_url":"https://api.github.com/repos/box/box-python-sdk/subscribers","subscription_url":"https://api.github.com/repos/box/box-python-sdk/subscription","commits_url":"https://api.github.com/repos/box/box-python-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/box/box-python-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/box/box-python-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/box/box-python-sdk/issues/comments/{number}","contents_url":"https://api.github.com/repos/box/box-python-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/box/box-python-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/box/box-python-sdk/merges","archive_url":"https://api.github.com/repos/box/box-python-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/box/box-python-sdk/downloads","issues_url":"https://api.github.com/repos/box/box-python-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/box/box-python-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/box/box-python-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/box/box-python-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/box/box-python-sdk/labels{/name}","releases_url":"https://api.github.com/repos/box/box-python-sdk/releases{/id}","created_at":"2015-02-06T00:30:55Z","updated_at":"2015-02-13T23:46:31Z","pushed_at":"2015-02-15T19:22:25Z","git_url":"git://github.com/box/box-python-sdk.git","ssh_url":"git@github.com:box/box-python-sdk.git","clone_url":"https://github.com/box/box-python-sdk.git","svn_url":"https://github.com/box/box-python-sdk","homepage":null,"size":1539,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/box/box-python-sdk/pulls/9"},"html":{"href":"https://github.com/box/box-python-sdk/pull/9"},"issue":{"href":"https://api.github.com/repos/box/box-python-sdk/issues/9"},"comments":{"href":"https://api.github.com/repos/box/box-python-sdk/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/box/box-python-sdk/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/box/box-python-sdk/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/box/box-python-sdk/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/box/box-python-sdk/statuses/f0e93b13616f7cdb0f9f476b78834eae96dc67f8"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":3,"review_comments":0,"commits":1,"additions":73,"deletions":18,"changed_files":3}}