Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Exploring Google's Social APIs

978 views

Published on

My presentation from the Google Developer Days in Munich, Moscow and Prague.

An exploration of the Google Buzz APIs.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Exploring Google's Social APIs

  1. 1. @adewalebuzz.google.com/adewale
  2. 2. Exploring Google’s Social APIs
  3. 3. Why develop on Google Buzz?
  4. 4. 4
  5. 5. 5
  6. 6. 7
  7. 7. Screenshots from: http://www.go-buzz.com/8
  8. 8. Why do you care?9
  9. 9. Using the Google Buzz API 10
  10. 10. Passwords are bad for everyone
  11. 11. OAuth Your Service Application Get unauthorized Provider request token 1. Your application gets an unauthorized request token from the Service Provider’s authorization server.
  12. 12. OAuth Your Service Application Provider Send user to SP with token 2. Your application sends the user to the Service Provider, which asks the user to grant your application access to the required data.
  13. 13. OAuth Your Service Application Get authorized Provider request token 3. Your application gets an authorized request token from the authorization server.
  14. 14. OAuth Your Service Application Exchange request Provider for access token 4. You exchange the authorized request token for an access token.
  15. 15. OAuth Your Service Application Use access token Provider to get data 5. You use the access token to request data from Service Provider’s service access servers.
  16. 16. Auth url: https://www.google.com/buzz/api/auth/OAuthAuthorizeTokenscope: https://www.googleapis.com/auth/buzzdomain: www.example.orgiconUrl: http://www.example.org/icon.png
  17. 17. https://www.google.com/buzz/api/auth/OAuthAuthorizeToken?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fbuzz&domain=www.example.org&oauth_token=
  18. 18. Polling is bad for everyone
  19. 19. code.google.com/p/pubsubhubbub
  20. 20. PubSubHubbub Publisher Hub Subscriber
  21. 21. PubSubHubbub Give me your latest content for feed X, please. Publisher Subscriber 1. Subscriber gets Publisher’s feed. The feed contains a link to the Hub.
  22. 22. PubSubHubbub Ive delegated distribution of that content to this Hub. Publisher Subscriber 1. Subscriber gets Publisher’s feed. The feed contains a link to the Hub.
  23. 23. PubSubHubbub I want to subscribe to feed X. Send updates to this URL Publisher Hub Subscriber 2. Subscriber POSTs subscription request to the Hub. The request contains the URL where the Hub should POST new updates to the Subscriber.
  24. 24. PubSubHubbub Hey there! Did you really send this request? Publisher Hub Subscriber 3. Hub hits the URL to verify the request was authentic; Subscriber responds with confirmation to the Hub.
  25. 25. PubSubHubbub Yup, that was really me, not a DoS attacker. Publisher Hub Subscriber 3. Hub hits the URL to verify the request was authentic; Subscriber responds with confirmation to the Hub.
  26. 26. PubSubHubbub I have new content for feed X for you! Publisher Hub Subscriber 4. a) Publisher notifies Hub about updates by POSTing feed URLs to the Hub; Hub pulls the feed again to find new entries.
  27. 27. PubSubHubbub Give me your latest content for feed X, please. Publisher Hub Subscriber 4. a) Publisher notifies Hub about updates by POSTing feed URLs to the Hub; Hub pulls the feed again to find new entries.
  28. 28. PubSubHubbub Here you go. Publisher Hub Subscriber 4. a) Publisher notifies Hub about updates by POSTing feed URLs to the Hub; Hub pulls the feed again to find new entries.
  29. 29. PubSubHubbub Give me your latest content for feed X, please. Publisher Hub Subscriber 4. b) If the Publisher does not inform the Hub, the Hub will periodically poll the Publisher’s feed for new updates.
  30. 30. PubSubHubbub Here you go. Publisher Hub Subscriber 4. b) If the Publisher does not inform the Hub, the Hub will periodically poll the Publisher’s feed for new updates.
  31. 31. PubSubHubbub New update to feed X! Here you go. Publisher Hub Subscriber 5. When Hub receives new update to feed X, it POSTs the update to the Subscriber’s endpoint URL.
  32. 32. PubSubHubbub New update to feed X! Here you go. Publisher Hub Subscriber Subscriber Subscriber Subscriber Subscriber Subscriber 6. If feed X has multiple subscribers, the Hub sends updates to all of them. This reduces load on the Publisher.
  33. 33. PubSubHubbub
  34. 34. Firehose
  35. 35. Photo credit: Nandhp, used under the Creative Commons Attribution-Share Alike 3.0 Unported license.Gardenhose
  36. 36. Track
  37. 37. http://buzzchatbot.com
  38. 38. Linkshttps://code.google.com/apis/buzz/docs/http://code.google.com/p/google-api-php-client/http://code.google.com/p/google-api-python-client/http://code.google.com/p/google-api-java-client/http://code.google.com/p/google-api-ruby-clienthttp://code.google.com/p/buzz-codelabshttp://code.google.com/p/buzz-mood
  39. 39. Making your products better
  40. 40. Log-in with Google Find your friends
  41. 41. Drive traffic with Share to Buzz button
  42. 42. Showcase relevant conversations in realtime
  43. 43. Questions?...and answers

×