Sign in to participate
Be Kind, Be Helpful
Ask a question, answer a question, and get to know the fine people in the Harvest community.
Feature Request: add "page" argument to "projects" and "clients" queries
I would suggest adding support for the “page=N” argument to the “/projects” or “/clients” API queries (rather than returning all projects or clients).
Currently, the “/invoices” API query supports a “page=N” argument, however this does not seem to be also supported for the “/projects” or “/clients” queries. This creates a scaling problem when there are lots of clients and/or projects.
In terms of supporting the existing behavior, I would make the default value of “page=0” and give this (0) the meaning of “all pages”. If page > 0, then it would only return 50 items at a time.
Note: it might also be nice to be able to set a “page-size=50” argument to override the default page size.
Thanks for this request, Jim. Paging in these areas make sense (especially projects) and we will consider it in our priority list.
Note, there is a new updated_since parameter available which may help you in the meantime:
http://www.getharvest.com/api/projects
http://www.getharvest.com/api/clients
Hi Barry, Thanks for prioritizing this request and for the info about the updated_since parameter — that’s useful for synchronization.