I’ve been trying to use https://dev.twitter.com/rest/reference/get/statuses/lookup to get a list of tweets. I was under the impression that this API can be called with Application-only authentication, so I have set up my consumer key and consumer secret. Following the steps in https://dev.twitter.com/oauth/application-only gets me to the point where I have a bearer token. But step 3, where I should be able to issue a call with the "Bearer " + bearer_token, is not working. It returns “Bad Authentication data”.
- Is this API in fact accessible via app-only authentication? All I want to do is get the Tweet text
- From the docs I don’t think I need to encode the bearer token. Is this correct?
I’d appreciate any help. If this has been answered elsewhere, my apologies – but I can’t see exactly relevant posts any later than 2013, where they were discussing OAuth 1.0A.