Not Authorized or Credential do not allow access, why?

api

#1

Hello there.

I just started to use twitters API and upon being authenticated, getting user profile, etc if I try to get:

'https://api.twitter.com/1.1/1.1/statuses/user_timeline.json I get --> error: ‘Not authorized’

while if I try:

https://api.twitter.com/1.1/home_timeline.json?count=5 I get --> ‘Your credentials do not allow access to this resource’ code: 220

Can anyone tell me what I am doing wrong? I have tried to do it from client as well as nodejs server (running on localhost currently) but no luck. :confused:


#2

I realized I needed to add either the user_name or userId. it now works just fine. :slightly_smiling:


#3