更新状态的twitter api资源URL已更改

Rod*_*Rod 0 twitter

自定义Twitter应用程序突然停止更新状态,我是Twitter的新手.

<errors>
  <error code="34">Sorry, that page does not exist</error>
</errors>
Stack Trace:
   at TwitterOAuth.WebResponseGet(HttpWebRequest webRequest)
Run Code Online (Sandbox Code Playgroud)

自定义应用使用以下资源网址:

"https://twitter.com/statuses/update.xml"
Run Code Online (Sandbox Code Playgroud)

找到一个使用以下资源URL的代码项目示例,它对我有用:

"http://api.twitter.com/1/statuses/update.json"
Run Code Online (Sandbox Code Playgroud)

http://www.codeproject.com/Articles/247336/Twitter-OAuth-authentication-using-Net


所以我试过了

"https://api.twitter.com/1/statuses/update.xml"
Run Code Online (Sandbox Code Playgroud)

得到以下错误:

Unhandled Exception: System.Net.WebException: The remote server returned an erro
r: (403) Forbidden.
   at System.Net.HttpWebRequest.GetResponse()
Run Code Online (Sandbox Code Playgroud)

Min*_*del 5

现在,twitter发布了新的API V1.1,旧的API v1.0将于2013年3月5日停用.所以你应该查看API V1.1