2012-11-02 49 views
0

我試圖將某個用戶的Twitter提要獲取到我的IOS應用程序中。首先,我使用這個鏈接來處理它。正在獲取Twitter應用程序進入IOS應用程序

https://twitter.com/status/user_timeline/wwwkrcgenkbe.json?count=25&from=wwwkrcgenkbe 

但是當我測試它,我得到了以下錯誤:

{ 

    "errors": [ 
     { 
      "message": "Sorry, that page does not exist", 
      "code": 34 
     } 
    ] 

} 

回答

2

的Twitter最近關閉該API端點。 (https://dev.twitter.com/docs/faq#11716

您需要使用格式爲api.twitter.com/v1.1/的網址。

我建議您閱讀最新的API文檔,這可能會是一個很好的起點:https://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline

+0

我檢查了,但我不知道如何建立我的網址。你可能有一個例子的網址? – Steaphann

+0

看看我鏈接的URL上的例子,我會假設這樣的:https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=twitterapi&count=2但是,這在其原始形式失敗。我相信這是因爲你現在必須發送oAuth數據來請求1.1 API。我自己並沒有完成所有必要的閱讀工作,所以我不能幫你解決這個問題。 – Keab42