User_timeline url


#1

trying to retrieve user_timeline…
i have a program that gives the user to choose which parameters for the user_timeline to retrieve.
according to your documentations (https://dev.twitter.com/rest/reference/get/statuses/user_timeline) all parameters (user_id, screen_name, count, since_id, max_id, trim_user, exclude_replies, include_rts) for the user_timeline are optional.
but when i send only “https://api.twitter.com/1.1/statuses/user_timeline.json” or “https://api.twitter.com/1.1/statuses/user_timeline.json?include_rts=True&exclude_replies=False” both result in “The remote server returned an error: (401) Unauthorized.” whereas when i add the screen_name parameter i do get results.


#2

Returns a collection of the most recent Tweets posted by the user indicated by the screen_name or user_id parameters.

So, although both screen_name or user_id are optional (and only one will work), you do need to specify one of those values, otherwise there’s no way for the API to know which user’s timeline you want to retrieve.


#3

thankyou for the fast reply