Skip to content

When authenticating requests to the Twitter API v2 endpoints #64

Open
@dong-yh

Description

TwitterCredentialsOAuth2 twitterCredentialsOAuth2 = new TwitterCredentialsOAuth2(xxx, xxx, xxx, xxx);
TwitterApi apiInstance = new TwitterApi(twitterCredentialsOAuth2);
apiInstance.tweets().createTweet(new TweetCreateRequest().text("hellow world"));

{"client_id":"27512824","detail":"When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal.","registration_url":"https://developer.twitter.com/en/docs/projects/overview","title":"Client Forbidden","required_enrollment":"Appropriate Level of API Access","reason":"client-not-enrolled","type":"https://api.twitter.com/2/problems/client-forbidden"}

When I push Twitter, I report an error and I guarantee that my app is not a standalone app in the project 。 What permissions do I need to activate。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions