[英]ruby/rails ruby/rails How can I get all the tweets from Twitter LIST (of users) using the Twitter API?
[英]Display a chosen users tweets using twitter api in a rails app
我正在嘗試在我的rails應用程序中顯示選定的用戶推文。 就我現在所知,它正在拉動他們的推文以及任何時候被提及。 我只想要他們發布的推文,別無其他。 我將沒有他們的登錄信息。 這僅適用於公共帳戶。 這是我到目前為止的代碼。
client.search(user_id=@band.twitter).take(20).collect do |tweet|
@ band.twitter是我存儲樂隊推特句柄的地方。 任何幫助將非常感激。
這似乎為我工作。
client.user_timeline(@band.twitter).take(20).collect do
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.