Obtaining OAuth bearer token


#1

I am following this documentation: https://dev.twitter.com/oauth/application-only

However, following those steps and correctly entering the consumer key and consumer secret I obtained from the ‘app’ I made, I get ‘UNAUTHORIZED_ACCESS’ ‘This request is not properly authenticated’

Not sure why it’s not working when I’ve followed what was documented.

POST to https://ads-api.twitter.com/1/oauth2/token
Authorization: Basic {base64 encoded concatenation of consumer key and secret with ‘:’ between them}


Guidance for UNAUTHORIZED_ACCESS issues
#2

You cannot use app only auth with the Ads API. You need to obtain a user context via 3-legged auth.


#3

Ah, that wasn’t readily apparent.


#4

Apologies - we will try to make that more clear.