Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Cannot use tweetsV2.searchAllTweets #105

Open
ludovicoloreti opened this issue Jun 29, 2022 · 0 comments
Open

Cannot use tweetsV2.searchAllTweets #105

ludovicoloreti opened this issue Jun 29, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@ludovicoloreti
Copy link

ludovicoloreti commented Jun 29, 2022

Description
I see that is possible to use tweetsV2.searchAllTweets. But when I try, it gives me this error:

{
  statusCode: 403,
  data: '{\n' +
    '  "title": "Unsupported Authentication",\n' +
    '  "detail": "Authenticating with OAuth 1.0a User Context is forbidden for this endpoint.  Supported authentication types are [OAuth 2.0 Application-Only].",\n' +
    '  "type": "https://api.twitter.com/2/problems/unsupported-authentication",\n' +
    '  "status": 403\n' +
    '}'
}

To reproduce

const twitterClient = new TwitterClient({
  apiKey: "***",
  apiSecret: "***",
  accessToken: "***",
  accessTokenSecret: "***",
  disableCache: true,
  ttl: 120,
});


twitterClient.tweetsV2.searchAllTweets({
  query: "test"
}).then((response) => {
    console.log(response || "");
  })
  .catch((err) => console.error(err));

Is it possible to do it or not?

Thanks!!!

@ludovicoloreti ludovicoloreti added the bug Something isn't working label Jun 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant