使用 yql 的嗡嗡声关注者
您好,
我如何使用 YQL 获取动态关注者。实际上我想计算嗡嗡声关注者的总数。请帮忙
HI
how can i grab buzz follower using YQL . actually i want to count the total no of buzz follower . please help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要首先获取 Google Buzz 的 OAuth 访问令牌 因为获取关注者的接入点需要身份验证。然后,您可以通过带有查询参数的 URI 来完成此操作,而不是使用通常的方法将 OAuth 签名传递给 Buzz API。这将允许您制作 URI 并将其传递到 YQL,YQL 又将其转发到 Buzz API。当然,您需要动态生成 YQL 查询。然后,您可以进行 API 调用来获取 Buzz 关注者列表。
请注意,OAuth 很难,这可能是我能想到的最难的 OAuth 用法。不是为了虚心。在这种情况下,YQL 将使事情变得更加复杂,而不是变得更加复杂。
You would need to obtain an OAuth access token for Google Buzz first because the access points for obtaining followers require authentication. Then, instead of the usual methods of passing in an OAuth signature to the Buzz API, you would do it through the URI with query parameters. This will allow you to craft the URI and pass it through to YQL, which will in turn relay it to the Buzz API. You will, of course, need to generate your YQL query dynamically. Then you can make the API call to get the list of Buzz followers.
Please note, OAuth is hard, and this is probably very nearly the hardest possible usage of OAuth I can think of. Not for the feint of heart. In this case, YQL is going to make things much more complicated, not less complicated.