简体   繁体   English

我可以使用Twitter gem从多个Twitter名称中同时提取Twitter .user数据吗?

[英]Can I use the Twitter gem to pull Twitter .user data from multiple Twitter names at the same time?

Ok. 好。 I've got a Ruby on Rails application and have successfully gotten authentication (thanks to other responses here). 我有一个Ruby on Rails应用程序,并成功获得了身份验证(感谢此处的其他响应)。 I can get it to tweet, read from the timeline, pull followers of the authenticated user, etc. 我可以发推文,从时间轴中读取信息,拉动经过身份验证的用户的关注者,等等。

However, now what I'm looking to do is pull the follower lists of the authenticated user, determine which (if any) of those accounts is verified or not and then display the verified accounts. 但是,现在我要做的是拉动经过身份验证的用户的关注者列表,确定其中哪些帐户(如果有)经过验证,然后显示经过验证的帐户。 I can pull the nickname of each follower, however, it seems like I have to do each call individually (.user(ID#1) then .user(ID#2) then etc.) which results in me hitting the rate limit cap. 我可以拉出每个关注者的昵称,但是,似乎我必须单独进行每个调用(.user(ID#1)然后.user(ID#2)然后等等),这导致我达到了速率限制上限。

Therefore, what I'm looking for is a way to pass multiple IDs and return the user information for each ID in one call (or at least fewer than a 1 ID: 1 API call). 因此,我正在寻找一种传递多个ID并在一次调用(或至少少于1个ID:1个API调用)中返回每个ID的用户信息的方法。 I feel like this has to be possible (in fac 我觉得这有可能(事实上

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM