Re: [twitter-dev] http://groups.google.com/group/twitter-development-talk

2011-06-23 Thread Matt Harris
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 
Developer Advocate, Twitter



On Thu, Jun 23, 2011 at 12:32 AM, dalvir  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


Re: [twitter-dev] http://groups.google.com/group/twitter-development-talk

2011-06-23 Thread kamesh SmartDude
use the API Url.

https://twitter.com/1/statuses/user_timeline.xml

//kamesh


On Thu, Jun 23, 2011 at 1:02 PM, dalvir  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