We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here's my code snippet to do the user following fetching
public async checkUserFollows( currentUser: CurrentUserDto, { code, codeVerifier }: TwitterCodeBodyDto ) { const { accessToken } = await this.twitterAuthClient.loginWithOAuth2({ code, codeVerifier, redirectUri: 'http://localhost:3005', }); const user = await this.userService.findUserByEmail( currentUser.email ); const res = await new TwitterApi(accessToken).v2.following( user.twitterId ); return res; // const data = await fetch( // `https://api.twitter.com/2/users/${user.twitterId}/following`, // { // method: 'GET', // headers: { // Authorization: `Bearer <bearer_token_from_dashboard/oauth2_access_token_from_above>`, // }, // } // ).then((res) => res.json()); // // return data; }
What I tried so far:
My thought is there is something wrong with Twitter API, but if I miss something else, please tell me
The text was updated successfully, but these errors were encountered:
Hey, Artem! I've also struggled with this issue, and unfortunately, it is impossible without the Twitter Enterprise API subscription. https://devcommunity.x.com/t/getting-all-followers-of-an-account/214611
Sorry, something went wrong.
No branches or pull requests
Here's my code snippet to do the user following fetching
What I tried so far:
My thought is there is something wrong with Twitter API, but if I miss something else, please tell me
The text was updated successfully, but these errors were encountered: