You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use user_posts(). Since this function supports count and cursor, I thought that I could use cursor for the pagination.
But whatever I set for cursor, I can get the same result (list of videos).
I want it should work in this way.
If a user posted 1000 videos, when I set count=30 and cursor=0, it will return the first 30 videos(from the 1st to the 30th).
When I set count=30 and cursor=1, then it will return the second 30 videos(from the 31st to the 60th),
But it does not work in this way.
Would you like to tell me how I can get the all videos posted by a specific user?
(According to the comment, I can get up to 2000 videos. What if over 2000 videos?)
The text was updated successfully, but these errors were encountered:
@pyon-yx the cursor has the meaning as start position
if you want to get the next page, you should pass the "cursor" from the prev response and create a new request
For example: the first request, I pass cursor = 0, get 30 items, response will contain hasMore = true (has more data) and the next cursor (cursor = 31)
So for the second request, I will pass cursor = 31 and get next 30 items, ...
I tried to use user_posts(). Since this function supports count and cursor, I thought that I could use cursor for the pagination.
But whatever I set for cursor, I can get the same result (list of videos).
I want it should work in this way.
If a user posted 1000 videos, when I set count=30 and cursor=0, it will return the first 30 videos(from the 1st to the 30th).
When I set count=30 and cursor=1, then it will return the second 30 videos(from the 31st to the 60th),
But it does not work in this way.
Would you like to tell me how I can get the all videos posted by a specific user?
(According to the comment, I can get up to 2000 videos. What if over 2000 videos?)
The text was updated successfully, but these errors were encountered: