I have created an app at https://apps.twitter.com/
I have enabled Read and Write permissions and retrieved my consumer key and secret.
I have tried two forms of authentication: both the Application-Only Authentication where I have successfully converted my consumer key/secret to an access token and 3-Legged OAuth where I have generated an access token and secret for my user account (which matched that listed on the app page).
When I try to make a request, either via Postman or my Node application with either of the above authentication methods, I always get an HTTP401 as a response. I am trying to hit something like:
https://api.twitter.com/1.1/statuses/user_timeline.json?user_id=twitter&screen_name=twitter&tag=hashtag
Example Authorization value for 3-Legged:
OAuth oauth_consumer_key="<APP CONSUMER KEY>",oauth_token="<USER ACCESS TOKEN>",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1495032623",oauth_nonce="DTyFC7",oauth_version="1.0",oauth_signature="<GENERATED SIGNATURE>"
Example Authorization value for Application-only:
Bearer AAAAAAAAAAAAAAAAAAAAAB1n0AA...
Is there something I’m missing to get this to work?