Search code examples
jquerygoogle-buzz

how to count Google Buzz followers


How can I get a user's Google Buzz follower count? Can I use jQuery or something else?


Solution

  • 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>