{"action":"created","issue":{"url":"https://api.github.com/repos/toggl/toggl_api_docs/issues/274","repository_url":"https://api.github.com/repos/toggl/toggl_api_docs","labels_url":"https://api.github.com/repos/toggl/toggl_api_docs/issues/274/labels{/name}","comments_url":"https://api.github.com/repos/toggl/toggl_api_docs/issues/274/comments","events_url":"https://api.github.com/repos/toggl/toggl_api_docs/issues/274/events","html_url":"https://github.com/toggl/toggl_api_docs/issues/274","id":252079526,"number":274,"title":"Pagination support?","user":{"login":"bernhof","id":1303750,"avatar_url":"https://avatars2.githubusercontent.com/u/1303750?v=4","gravatar_id":"","url":"https://api.github.com/users/bernhof","html_url":"https://github.com/bernhof","followers_url":"https://api.github.com/users/bernhof/followers","following_url":"https://api.github.com/users/bernhof/following{/other_user}","gists_url":"https://api.github.com/users/bernhof/gists{/gist_id}","starred_url":"https://api.github.com/users/bernhof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernhof/subscriptions","organizations_url":"https://api.github.com/users/bernhof/orgs","repos_url":"https://api.github.com/users/bernhof/repos","events_url":"https://api.github.com/users/bernhof/events{/privacy}","received_events_url":"https://api.github.com/users/bernhof/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-22T20:28:47Z","updated_at":"2017-09-11T14:48:18Z","closed_at":null,"author_association":"NONE","body":"I'm evaluating Toggl on a free account and have created 50+ projects in my workspace. When I try to list them all [as documented here](https://github.com/toggl/toggl_api_docs/blob/master/chapters/workspaces.md#get-workspace-projects), I only get the first 47. How do I get the next \"page\" or set of projects? I'm guessing this applies to clients, time entries etc. as well.\r\n\r\nToggl looks promising in general, but It's critical for us to be able to periodically sync up with our own internal systems and for this purpose we need to be able to list *all* projects in the workspace.\r\n\r\nAs far as I can tell, there is no documented pagination support in the v8 API. How do I proceed here?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/toggl/toggl_api_docs/issues/comments/328553271","html_url":"https://github.com/toggl/toggl_api_docs/issues/274#issuecomment-328553271","issue_url":"https://api.github.com/repos/toggl/toggl_api_docs/issues/274","id":328553271,"user":{"login":"zimmerel","id":26882268,"avatar_url":"https://avatars0.githubusercontent.com/u/26882268?v=4","gravatar_id":"","url":"https://api.github.com/users/zimmerel","html_url":"https://github.com/zimmerel","followers_url":"https://api.github.com/users/zimmerel/followers","following_url":"https://api.github.com/users/zimmerel/following{/other_user}","gists_url":"https://api.github.com/users/zimmerel/gists{/gist_id}","starred_url":"https://api.github.com/users/zimmerel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zimmerel/subscriptions","organizations_url":"https://api.github.com/users/zimmerel/orgs","repos_url":"https://api.github.com/users/zimmerel/repos","events_url":"https://api.github.com/users/zimmerel/events{/privacy}","received_events_url":"https://api.github.com/users/zimmerel/received_events","type":"User","site_admin":false},"created_at":"2017-09-11T14:48:18Z","updated_at":"2017-09-11T14:48:18Z","author_association":"NONE","body":"There is no need for pagination on a projects request using the v8 API. I use the standard get request every day to get the data for hundreds of products without using pagination.\r\nGET https://www.toggl.com/api/v8/workspaces/{workspace_id}/projects\r\n\r\nIt appears to me that you might have some filters on or possibly that you only have 47 projects. By default, the request only returns active projects unless you specify it to do both. As far as I know, you only need pagination when using the v2 API to pull reports, which is limited at 50 records per request."}}
{"actor":{"display_login":"zimmerel"}}