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

Cannot use tweetsV2.searchAllTweets #105

@ludovicoloreti

Description

@ludovicoloreti

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!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions