I am trying to call twitter rest APIs with oAuth 1.0 authentication. But I am getting forbidden error in every API. I want to call twitter following api in angular 8. Can someone let me know why I am getting this error and how can I resolve it.
I am getting below error:-
{ “client_id”: “21423516”, “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.”, “title”: “Client Forbidden”,
“required_enrollment”: “Standard Basic”, “reason”:
“client-not-enrolled”, }
2
Answers
All Twitter API v2 endpoints require requests to be authenticated with a set of credentials, also known as keys and tokens. You can use either OAuth 2.0 Bearer Token or OAuth 1.0a User Context to authenticate requests to these endpoints. OAuth 2.0 Bearer Token means that you must pass a Bearer Token with your request
Is the app inside of a project on the developer portal? That’s what the error message is asking about.