我想給一個簡單的GET用戶/顯示。我在Javascrit編碼,並且我在使用Api v.1的Http get請求中使用此URL來獲取用戶信息:https://api.twitter.com/1/users/show.json?screen_name=BillGates&include_entities=true。但現在給了我這個錯誤:如何通過Twitter Api v.1.1獲取用戶信息?
{
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
}
]
}
於是我得到了API v1.1的URL是這樣的:https://api.twitter.com/1.1/users/show.json?screen_name=BillGates(從https://dev.twitter.com/docs/api/1.1/get/users/show明白了)。這個URL給我這個錯誤:
{
errors: [
{
message: "Bad Authentication data",
code: 215
}
]
}
我是非常新的Twitter API。我需要用API v1.1替換API v1如果有人知道該怎麼做,那真的很感激。謝謝
版本1已經退役..可以這可以幫助... https://dev.twitter.com/docs/api/1.1/overview –
@Moni我在這裏有同樣的問題,你有沒有找到解決方案爲了這。 – satheeshwaran
你需要使用oAuth。現在必須在服務器端完成。 – Seth