Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pagination not supported #15

Open
nekromoff opened this issue Sep 29, 2017 · 2 comments
Open

pagination not supported #15

nekromoff opened this issue Sep 29, 2017 · 2 comments

Comments

@nekromoff
Copy link

nekromoff commented Sep 29, 2017

As per https://github.com/tick/tick-api/README.MD:

Pagination
Most collection APIs paginate their results. The first request returns up to 100 records. Check the next page for more results by adding the page parameter to your request. For example, page=2, then page=3, and so on until you get an empty response.

@nekromoff nekromoff changed the title paging not supported pagination not supported Sep 29, 2017
@nekromoff
Copy link
Author

Supported via undocumented second parameter ['query' => $queryParams])
where for each individual file this:
return $this->client->get('projects');
must be changed to this:
return $this->client->get('projects', ['page' => $page]);

@nekromoff nekromoff reopened this Sep 29, 2017
@nekromoff
Copy link
Author

nekromoff commented Sep 29, 2017

Actually leaving reopened, since this is a fix that user must do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant