The Twitter REST API v1 is no longer active


#1

Hello Guys, I am implementing twitter API in ASP.Net. I am facing the given issue. I have read al API 1.1 solution but no luck. Please suggest what I need to do.
{“errors”: [{“message”: "The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.", “code”: 68}]}.

The following code is implemented by us.

Before Authorization
Works and asking to authorize.

AfterAuthorization
Got error in this step.

oAuthTwt.ConsumerKey = ConsumerKey;
oAuthTwt.ConsumerSecret = ConsumerSecret;
OAuthTokenResponse token1 = OAuthUtility.GetRequestToken(ConsumerKey, ConsumerSecret, Session[“TwtCallback”].ToString());
// OAuthTokenResponse token1 = OAuthUtility.GetAccessToken(ConsumerKey, ConsumerSecret,Request.QueryString[“oauth_token”], “”);
userAccessToken = token1.Token;
userAccessSecret = token1.TokenSecret;
userName = token1.ScreenName;

            OAuthTokens tokens = new OAuthTokens();
            tokens.AccessToken = userAccessToken; // 
            tokens.AccessTokenSecret = userAccessSecret;// userAccessSecret; // 
            tokens.ConsumerKey = ConsumerKey;
            tokens.ConsumerSecret = ConsumerSecret;

            string strTweet = Session["Tweet"].ToString();

           //We got error in below line.
            TwitterResponse<TwitterStatus> tweetResponse = TwitterStatus.Update(tokens, strTweet);

#2

It’s likely that the library you’re using is calling API v1 when executing TwitterStatus.Update. You may need to upgrade the library or modify it yourself to utilize the correct paths. It’s likely calling “http://api.twitter.com/1/statuses/update.xml” or similar when you need it to use https://api.twitter.com/1.1/statuses/update.json"

See [node:126] for more libraries to use that are 1.1-compatible.


#3

when i executed i got this error…
"{“errors”: [{“message”: “The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.", “code”: 68}]}”

how can i solve this error


#4

Hi Ravi,
I faced similar problems. Please refer to my blogpost…
http://shachihkumar.wordpress.com/2013/12/


#5

Open the File twitteroauth.php and Just Change the old URL : https://api.twitter.com/1/ with URL : https://api.twitter.com/1.1/ .

Its Worked .
If its not working Properly check out your configuration for Consumer Secret key or Twitter API Key .

Thanks
For Further Guide :
Skype : ITHHKN
http://inspiretechnology.co


#6

https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=raghav1705
can anyone pls share c# code for above creating timeline.

Thank you,
Raghvendra


#7

See the new API v1.1 docs for this endpoint here: https://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline

Any .NET library which talks to this endpoint should work.