Hi dalvir, The REST API lives on the domain api.twitter.com not twitter.com. The request you are making should be made to: http://api.twitter.com/1/statuses/user_timeline.json
To understand the reason for the error you will need to inspect the response that comes back from the API. We put more details about errors in the response body to help you identify what you need to do in your code. Best, @themattharris <https://twitter.com/intent/follow?screen_name=themattharris> Developer Advocate, Twitter On Thu, Jun 23, 2011 at 12:32 AM, dalvir <sainidal...@gmail.com> wrote: > I am using the following code. This was working fine. > oAuthTwitter oAuth = new oAuthTwitter(); > oAuth.Token = "Token"; > oAuth.TokenSecret = "secrentoken"; > TwitterToken objtwitter = new > TwitterToken(); > > oAuth.oAuthWebRequest(oAuthTwitter.Method.GET, "http://twitter.com/ > statuses/user_timeline.xml", null);//This line return the following > 401 error > But Now it stoped to work. and returning the error > The remote server returned an error: (401) Unauthorized. > > Why this error is coming? > > -- > Twitter developer documentation and resources: https://dev.twitter.com/doc > API updates via Twitter: https://twitter.com/twitterapi > Issues/Enhancements Tracker: > https://code.google.com/p/twitter-api/issues/list > Change your membership to this group: > https://groups.google.com/forum/#!forum/twitter-development-talk > -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk