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?
Solved! Go to Solution.
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.
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.
Thanks for the quick reply.
I am not sure what you mean, Can you explain it or is there any document?
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.