{"action":"created","issue":{"url":"https://api.github.com/repos/cscheid/rgithub/issues/30","labels_url":"https://api.github.com/repos/cscheid/rgithub/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/cscheid/rgithub/issues/30/comments","events_url":"https://api.github.com/repos/cscheid/rgithub/issues/30/events","html_url":"https://github.com/cscheid/rgithub/issues/30","id":53701109,"number":30,"title":"Pagination","user":{"login":"jennybc","id":599454,"avatar_url":"https://avatars.githubusercontent.com/u/599454?v=3","gravatar_id":"","url":"https://api.github.com/users/jennybc","html_url":"https://github.com/jennybc","followers_url":"https://api.github.com/users/jennybc/followers","following_url":"https://api.github.com/users/jennybc/following{/other_user}","gists_url":"https://api.github.com/users/jennybc/gists{/gist_id}","starred_url":"https://api.github.com/users/jennybc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jennybc/subscriptions","organizations_url":"https://api.github.com/users/jennybc/orgs","repos_url":"https://api.github.com/users/jennybc/repos","events_url":"https://api.github.com/users/jennybc/events{/privacy}","received_events_url":"https://api.github.com/users/jennybc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-01-08T00:36:44Z","updated_at":"2015-02-13T16:23:31Z","closed_at":null,"body":"Have you thought about pagination at all?\r\n\r\n> Requests that return multiple items will be paginated to 30 items by default.\r\n\r\n<https://developer.github.com/v3/#pagination>\r\n\r\nI'm not sure what the conventions are for API wrappers and assisting the user to fetch multiple or all pages. But the [Ruby wrapper for the GitHub API](https://github.com/octokit/octokit.rb) talks about this in its [README](https://github.com/octokit/octokit.rb/blob/master/README.md#pagination):\r\n\r\n> For smallish resource lists, Octokit provides auto pagination. When this is enabled, calls for paginated resources will fetch and concatenate the results from every page into a single array.\r\n\r\nI'm thinking about this because I'm using `get.my.repositories()` and have realized that by default I'm getting the only the first 30. Before I start playing around with explicit requests for specific pages, I'm wondering if you are contemplating adding any auto pagination to your package….."},"comment":{"url":"https://api.github.com/repos/cscheid/rgithub/issues/comments/74280397","html_url":"https://github.com/cscheid/rgithub/issues/30#issuecomment-74280397","issue_url":"https://api.github.com/repos/cscheid/rgithub/issues/30","id":74280397,"user":{"login":"jennybc","id":599454,"avatar_url":"https://avatars.githubusercontent.com/u/599454?v=3","gravatar_id":"","url":"https://api.github.com/users/jennybc","html_url":"https://github.com/jennybc","followers_url":"https://api.github.com/users/jennybc/followers","following_url":"https://api.github.com/users/jennybc/following{/other_user}","gists_url":"https://api.github.com/users/jennybc/gists{/gist_id}","starred_url":"https://api.github.com/users/jennybc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jennybc/subscriptions","organizations_url":"https://api.github.com/users/jennybc/orgs","repos_url":"https://api.github.com/users/jennybc/repos","events_url":"https://api.github.com/users/jennybc/events{/privacy}","received_events_url":"https://api.github.com/users/jennybc/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T16:23:31Z","updated_at":"2015-02-13T16:23:31Z","body":"I thought it was 100. Are you actually getting 1000 items in one request?"}}