How does paging work?
There is 3 different headers associated with paging for the Teamwork API. If you go to the developer tools in your browser, and do a ‘GET’ call. You will see in the headers section if you inspect the browser. There is 3 header values:
- x-page - the current page being returned
- x-pages - the total number of pages available
- x-records - the total number of items available
You can request a specific page by calling the same API call and adding the parameter &page=n where n is the page you want. e.g: &page=2 for page 2, &page=5 for page 5.
You will see throughout the calls paging being used to alter the results.
If you have any feedback or suggestions, feel free to contact us at firstname.lastname@example.org.