开发者

how to count Google Buzz followers

How can I get a user's Google Buzz follower cou开发者_如何学运维nt? Can I use jQuery or something else?


if all you want is buzz follower count, you don't even need jQuery. Just use the JSONP support in the Buzz API, and call the followers endpoint...

<html>
  <head>
    <script>
      function followerCount(response) {
        alert(response.data.totalResults);
      }
    </script>
    <script src="https://www.googleapis.com/buzz/v1/people/googlebuzz/@groups/@followers?alt=json&callback=followerCount&max-results=0"></script>
  </head>
</html>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜