API3
grantmc09 at June 8th, 2015 12:26 — #1
I am receiving incorrect pagination in the JSON response for the contacts list. We have 28 contacts in OnePageCRM. Here is the call I'm making in the API Browser:
contacts.json?team=1&page=1
And the pagination response I get is:
"total_count": 28,
"page": 1,
"max_page": 3,
"per_page": 10
But if I make the same call on page 3 (contacts.json?team=1&page=3
), here is the response I get:
"total_count": 38,
"page": 3,
"max_page": 4,
"per_page": 10
Two things are wrong here: total_count
should be 28 and max_page
should be 3. Is there a bug in the API? Or am I using it incorrectly?
pete_onepagecrm at June 8th, 2015 13:11 — #2
Hi Grant, definitely looks like you've found a bug there somewhere.
I'll take a look into it tomorrow. Thanks for letting us know.
pete_onepagecrm at June 9th, 2015 05:31 — #3
@grantmc09 - bug found and fixed. This will be released in our next push, which should be on Thursday.
Thanks again for spotting that.
grantmc09 at June 9th, 2015 10:03 — #4
Awesome! Thanks for the quick update.
pete_onepagecrm at June 11th, 2015 05:18 — #5
@grantmc09 we pushed this morning so that fix to the pagination should be fixed now.
Please let me know if there's any problems.
Powered by Discourse, best viewed with JavaScript enabled