I’m trying to get an app-only bearer token but I’m always getting a 403. I have double checked that I properly encoded the consumer key and secret. Here is the curl request I’m making:
curl --request 'POST' 'https://api.twitter.com/oauth2/token' --header 'Authorization: "Basic UH..........................lF", Content-Type: "application/x-www-form-urlencoded;charset=UTF-8", Accept-Encoding: "gzip"' --data "grant_type=client_credentials" --verbose
And I’m getting this response with a 403 status:
{"errors":[{"code":99,"label":"authenticity_token_error","message":"Unable to verify your credentials"}]}
Thanks for any help!