szdc / tiktok-api

Unofficial API wrapper for TikTok
MIT License
1.27k stars 279 forks source link

listPosts and max_cursor #118

Closed NathanielCodes closed 5 years ago

NathanielCodes commented 5 years ago

Hello,

First want to say thanks to @szdc,

This is likely a misuse on my part but when making a 'listPost' request I am not able to list past the first 20 posts. I am under the assumption that the property 'max_cursor' is the timestamp offset from which posts are listed from.

I am entering the 'create_time' property of the 20th post as the 'max_cursor' for the next call. Nothing is being returned currently. Does anybody have an idea?

Regards

NathanielCodes commented 5 years ago

I have found the solution, make sure the maxcursor is the correct format.

For me, if the last video's 'create_time' property is 1569290716. The next call's 'max_cursor' should be 1569290716000.

Cheers