Thanks for the reply. I’m using Python requests to make this call:
tweet_url = 'https://api.twitter.com/1.1/statuses/user_timeline.json?count=10&screen_name=twitterapi'
headers = {}
headers['Authorization'] = 'Bearer ' + access_token
headers['User-Agent'] = 'SciKitTut v1.0'
print(headers)
{‘Authorization’: u’Bearer *****************************’, ‘User-Agent’: ‘SciKitTut v1.0’}
r = requests.get(tweet_url, headers)
r.status_code
400
r.text
u’{“errors”:[{“code”:215,“message”:“Bad Authentication data.”}]}’
I’m not sure if the User Agent header is required here, or if it is, what my application’s version is. I was following the example at https://dev.twitter.com/oauth/application-only and thought I would try it. I am probably making a very basic mistake somewhere.