PLhery / node-twitter-api-v2

Strongly typed, full-featured, light, versatile yet powerful Twitter API v1.1 and v2 client for Node.js.
https://www.npmjs.com/package/twitter-api-v2
Apache License 2.0
1.25k stars 175 forks source link

Using "next_page_token" on "tweetLikedBy" #439

Closed Ketcap closed 1 year ago

Ketcap commented 1 year ago

Is your feature request related to a problem? Please describe. When I'm using "v2.tweetLikedBy" I need to pass argument asPaginator:true and I cannot pass "next_page_token". typescript yells and does not work.

Describe the solution you'd like I would like to have the "next_page_token" param available to user.

Describe alternatives you've considered I don't think there's an alternative on here, I might have missed tho. I've check this issue but not applicable for "v2.tweetLikedBy" https://github.com/PLhery/node-twitter-api-v2/issues/393

Additional context When I get likes of the tweet after getting "429" I'd like to continue where I've left off.

alkihis commented 1 year ago

Hi, How about pagination_token? No parameter is named next_page_token for this endpoint (please see documentation https://developer.twitter.com/en/docs/twitter-api/tweets/likes/api-reference/get-tweets-id-liking_users).

Ketcap commented 1 year ago

I'd like to use that but I cannot see that in the api that is given to us. Screenshot 2023-01-30 at 15 58 33

delivey commented 1 year ago

Running into the same issue.