我正在尋找一個解決方法,該公開的Twitter的API錯誤:http://code.google.com/p/twitter-api/issues/detail?id=214Twitter API錯誤 - 推文提供了錯誤的User_id。解決問題?
當你取的鳴叫,鳴叫返回不正確的USER_ID。但它確實爲您提供了正確的屏幕名稱。
我的目標是使用API做兩件事情:
取我的Twitter帳戶的所有追隨者,這是瑣碎的Ruby腳本:
myfollowers = Twitter.follower_ids("justinzollars")
(嘰嘰喳喳的寶石) 對應於此API調用:https://dev.twitter.com/docs/api/1/get/followers/ids保存從單個用戶只鳴叫。 https://dev.twitter.com/docs/api/1/get/search
的問題是第一個API調用返回user_ids
和鳴叫搜索調用返回from_user_id_str
(USER_NAME)。我不想進行數以萬計的api調用,詢問從tweets搜索api調用返回的每個from_user_id_str
的user_id
。
我怎樣纔能有效地解決這個問題呢?