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

the search call is only returning the results but the whole set is needed for paging #8

Open
tackaberry opened this issue Jan 19, 2017 · 0 comments

Comments

@tackaberry
Copy link

Im finding myself expecting the whole result set to do paging. I do see the merit in returning just the tickets, but it falls short.

Here's the offending bit of code:
screen_shot_2017-01-18_at_8_26_39_pm

This is what is returned alongside the results:
{
"results": [
...
],
"followup_ids": [],
"ticket_form_id": ,
"brand_id": 1
*,
"satisfaction_probability": null,
"allow_channelback": false,
"result_type": "ticket"
}
],
"facets": null,
"next_page": "https://*****.zendesk.com/api/v2/search.json?page=2&per_page=5&query=type%3Aticket+created%3C2016-09-02T00%3A00%3A00Z+created%3E2016-09-01T00%3A00%3A00Z&sort_by=created_at&sort_order=asc",
"previous_page": null,
"count": 395
}

With the code as it is, how would you approach it?

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