User_timeline url


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 ( 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 “” or “” both result in “The remote server returned an error: (401) Unauthorized.” whereas when i add the screen_name parameter i do get results.


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.


thankyou for the fast reply