{"request":"\/1.1\/statuses\/user_timeline.json?count=20&user_id=blah"error":"Not authorized"}


#1

No matter what the user id is, I get these errors:

Error. Url=https://api.twitter.com/1.1/statuses/user_timeline.json?count=20&user_id=%40TrekRenegades Message=Unauthorized
{“request”:"/1.1/statuses/user_timeline.json?count=20&user_id=%40TrekRenegades",“error”:“Not authorized”}

I am adding the token I get from oauthing…
req.SetHeader(“Authorization”, "Bearer " & TwitterAccessToken)
TwitterAccessToken is digit by digit, identical to what Twitter gives me when I ask for a bearer token.


#2

It’s screen_name not user_id…


#3

Have you tried making a request with the same bearer token in another environment, like curl on the command line? Are you sure that this HTTP library is sending the request as you’re expecting it to? Are you able to make other requests with the same token?


#4

Hi,

I’m facing a similar issue:

  1. https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=twitterapi&include_rts=1

When I call the API using screen_name=twitterapi, I get a proper response of the tweets but when I change it to some other screen name I get the same “Not Authorized” response


#5

If account is protected you may get that error. Please check to account is private or public.