Skip to content

can figure out how to use pagination when using V2 following endpoint #141

Answered by alkihis
shamshirii asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, a quick example:

const user = await client.v2.userByUsername('the_piedude');
const followings = await client.v2.following(user.data.id, { asPaginator: true });

for await (const following of followings) {
  console.log(following.id);
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alkihis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants