API Pagingtoken | Community
Skip to main content
February 9, 2016
Solved

API Pagingtoken

  • February 9, 2016
  • 1 reply
  • 2291 views

when i tried to export activities with my pagingtoken, it only shows the activity of particular date. I want activity from a date. I used  "/rest/v1/activities/pagingtoken.json?sinceDatetime=2016-01-06". it only shows the activity logged on "2016-01-06". I am using the PHP sample given in the documentation. Can you please help me on this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Every response will give you a nextPageToken to use in the next request.  If you keep using the original token you'll never get anywhere. 

For the first call, use the Get Paging Token API to get nextPageToken. For subsequent calls to this endpoint, use the nextPageToken returned from the response. This endpoint will always return the nextPageToken.

1 reply

SanfordWhiteman
New Participant
February 9, 2016

Are you following up w/the nextPageToken?

The sinceDatetime should do what you want -- starting the cursor, if you will, at the the "since" -- but you have to keep using the nextPageToken.

February 9, 2016

Thanks for the quick reply.

I am not sure what you mean, Can you explain it or is there any document?

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
February 9, 2016

Every response will give you a nextPageToken to use in the next request.  If you keep using the original token you'll never get anywhere. 

For the first call, use the Get Paging Token API to get nextPageToken. For subsequent calls to this endpoint, use the nextPageToken returned from the response. This endpoint will always return the nextPageToken.