google developer day 2010 japan: 新 socialweb: 全てはオープンスタンダードの元に...

144
Developer Day Google 2010

Upload: google-developer-relations-team

Post on 07-Dec-2014

1.470 views

Category:

Technology


0 download

DESCRIPTION

SocialWeb の世界では情報のやりとりにますますオープンスタンダードを活用し始めています。これにより、さらに多くのサービスが連携を深め、ディベロッパーの関わる世界をシンプルにします。このセッションでは Activity Streams、OAuth、PubsubHubbub といった最も重要なオープンスタンダードを紹介すると共に、Google Buzz API に視点を移すことで、どのような実装や利用方法があるかを紹介します。また、既存のアプリケーションやサンプル、スタータープロジェクト、Q&A を通してさらに理解を深めます。

TRANSCRIPT

Page 1: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 2: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

The New Social Web:It’s about Open StandardsTimothy Jordan

Developer DayGoogle 2010

Page 3: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Timothy JordanDeveloper Advocate, Google

buzz.timothyjordan.com@timothyjordan

Hello

Page 4: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

#gdd2010jp

Page 5: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Agenda• Open Standards

• Google Buzz

• Examples

Page 6: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Open Standards...are a really good thing

Page 7: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Why?

Page 8: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Open Source

Page 9: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Open Source

Page 10: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Open Source

Page 11: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Open Source

Page 12: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Open Source

• Freedom

Page 13: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Open Source

• Freedom• Community

Page 14: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Open Standards

Page 15: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Open Standards

• Simplify

Page 16: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Open Standards

• Simplify• Interoperability

Page 17: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 18: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

OAuth

1.Your application gets an unauthorized request token from the Service Provider’s authorization server.

Your Application

Service ProviderGet unauthorized

request token

Page 19: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

OAuth

Your Application

Service Provider

Send user to SPwith token

2.Your application sends the user to the Service Provider, which asks the user to grant your application access to the required data.

Page 20: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

OAuth

Your Application

Service ProviderGet authorized

request token

3.Your application gets an authorized request token from the authorization server.

Page 21: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

OAuth

Your Application

Service ProviderExchange request

for access token

4.You exchange the authorized request token for an access token.

Page 22: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

OAuth

Your Application

Service ProviderUse access token

to get data

5.You use the access token to request data from Service Provider’s service access servers.

Page 23: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 24: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 25: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Atom<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:gd="http://schemas.google.com/g/2005" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CkUGRHk8fyp7ImA9Wx5WEU0.&quot;"> <id>tag:blogger.com,1999:blog-3188762512334365442</id> <updated>2010-09-21T13:17:05.777-07:00</updated> <title>Social Web Blog</title> <subtitle type="html" /> <link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://googlesocialweb.blogspot.com/feeds/posts/default" /> <link rel="alternate" type="text/html" href="http://googlesocialweb.blogspot.com/" /> <link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/3188762512334365442/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /> <author> <name>A Googler</name> <email>[email protected]</email> </author> <generator version="7.00" uri="http://www.blogger.com">Blogger</generator> <openSearch:totalResults>45</openSearch:totalResults> <openSearch:startIndex>1</openSearch:startIndex> <openSearch:itemsPerPage>25</openSearch:itemsPerPage> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/SocialWebBlog" /> <feedburner:info uri="socialwebblog" /> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /> <entry gd:etag="W/&quot;D0YASX89cCp7ImA9WxFaFUo.&quot;"> <id>tag:blogger.com,1999:blog-3188762512334365442.post-8190772326434476744</id> <published>2010-07-19T14:14:00.001-07:00</published> <updated>2010-07-19T14:32:28.168-07:00</updated> <app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-19T14:32:28.168-07:00</app:edited> <title>Announcing New Google Buzz API features</title> <content type="html">&lt;div&gt;Today we announced several new Google Buzz API features including our top developer request, the Google Buzz firehose. You can read more about it and the other new features &lt;a href="http://googlecode.blogspot.com/2010/07/new-google-buzz-api-features-including.html"&gt;here&lt;/a&gt;.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3188762512334365442-8190772326434476744?l=googlesocialweb.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/SocialWebBlog/~4/sO5jY3x-Dfk" height="1" width="1"/&gt;</content> <link rel="replies" type="application/atom+xml" href="http://googlesocialweb.blogspot.com/feeds/8190772326434476744/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="https://www.blogger.com/comment.g?blogID=3188762512334365442&amp;postID=8190772326434476744" title="7 Comments" /> <link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3188762512334365442/posts/default/8190772326434476744?v=2" /> <link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3188762512334365442/posts/default/8190772326434476744?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SocialWebBlog/~3/sO5jY3x-Dfk/announcing-new-google-buzz-api-features.html" title="Announcing New Google Buzz API features" /> <author> <name>Timothy Jordan</name> <uri>http://www.blogger.com/profile/14618592793335366108</uri> <email>[email protected]</email> <gd:extendedProperty name="OpenSocialUserId" value="14459911890912057787" /> </author> <thr:total>7</thr:total> <feedburner:origLink>http://googlesocialweb.blogspot.com/2010/07/announcing-new-google-buzz-api-features.html</feedburner:origLink> </entry>

Page 26: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Atom<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom"> <id>tag:blogger.com,1999:blog-3188762512334365442</id> <updated>2010-09-21T13:17:05.777-07:00</updated> <title>Social Web Blog</title> <author> <name>A Googler</name> <email>[email protected]</email> </author> <generator version="7.00" uri="http://www.blogger.com">Blogger</generator> <link rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/SocialWebBlog" /> <entry> <id>tag:blogger.com,1999:blog-3188762512334365442.post-8190772326434476744</id> <published>2010-07-19T14:14:00.001-07:00</published> <updated>2010-07-19T14:32:28.168-07:00</updated> <title>Announcing New Google Buzz API features</title> <content type="html"> ... </content> <link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3188762512334365442/posts/default/8190772326434476744?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SocialWebBlog/~3/sO5jY3x-Dfk/announcing-new-google-buzz-api-features.html" title="Announcing New Google Buzz API features" /> <author> <name>Timothy Jordan</name> <uri>http://www.blogger.com/profile/14618592793335366108</uri> <email>[email protected]</email> <gd:extendedProperty name="OpenSocialUserId" value="14459911890912057787" /> </author> <thr:total>7</thr:total> <feedburner:origLink>http://googlesocialweb.blogspot.com/2010/07/announcing-new-google-buzz-api-features.html</feedburner:origLink> </entry>

Page 27: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Atom<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom">

<id>tag:blogger.com,1999:blog-3188762512334365442</id> <updated>2010-09-21T13:17:05.777-07:00</updated> <title>Social Web Blog</title> <author> <name>A Googler</name> <email>[email protected]</email> </author> <generator version="7.00" uri="http://www.blogger.com">Blogger</generator> <link rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/SocialWebBlog" /> <entry> <id>tag:blogger.com,1999:blog-3188762512334365442.post-8190772326434476744</id> <published>2010-07-19T14:14:00.001-07:00</published> <updated>2010-07-19T14:32:28.168-07:00</updated> <title>Announcing New Google Buzz API features</title> <content type="html"> ... </content> <link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3188762512334365442/posts/default/8190772326434476744?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SocialWebBlog/~3/sO5jY3x-Dfk/announcing-new-google-buzz-api-features.html" title="Announcing New Google Buzz API features" /> <author> <name>Timothy Jordan</name> <uri>http://www.blogger.com/profile/14618592793335366108</uri> <email>[email protected]</email> <gd:extendedProperty name="OpenSocialUserId" value="14459911890912057787" /> </author> <thr:total>7</thr:total> <feedburner:origLink>http://googlesocialweb.blogspot.com/2010/07/announcing-new-google-buzz-api-features.html</feedburner:origLink> </entry>

Page 28: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Atom<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom"> <id>tag:blogger.com,1999:blog-3188762512334365442</id> <updated>2010-09-21T13:17:05.777-07:00</updated> <title>Social Web Blog</title>

<author> <name>A Googler</name> <email>[email protected]</email> </author> <generator version="7.00" uri="http://www.blogger.com">Blogger</generator>

<link rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/SocialWebBlog" /> <entry> <id>tag:blogger.com,1999:blog-3188762512334365442.post-8190772326434476744</id> <published>2010-07-19T14:14:00.001-07:00</published> <updated>2010-07-19T14:32:28.168-07:00</updated> <title>Announcing New Google Buzz API features</title> <content type="html"> ... </content> <link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3188762512334365442/posts/default/8190772326434476744?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/SocialWebBlog/~3/sO5jY3x-Dfk/announcing-new-google-buzz-api-features.html" title="Announcing New Google Buzz API features" /> <author> <name>Timothy Jordan</name> <uri>http://www.blogger.com/profile/14618592793335366108</uri> <email>[email protected]</email> <gd:extendedProperty name="OpenSocialUserId" value="14459911890912057787" /> </author> <thr:total>7</thr:total> <feedburner:origLink>http://googlesocialweb.blogspot.com/2010/07/announcing-new-google-buzz-api-features.html</feedburner:origLink> </entry>

Page 29: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 30: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

code.google.com/p/pubsubhubbub

Page 31: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

PubSubHubbub

Publisher SubscriberHub

Page 32: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

PubSubHubbub

1.Subscriber gets Publisher’s feed. The feed contains a link to the Hub.

Publisher Subscriber

Give me your latest

content for feed X, please.

Page 33: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

PubSubHubbub

1.Subscriber gets Publisher’s feed. The feed contains a link to the Hub.

Publisher Subscriber

I've delegated distribution of that content to this Hub.

Page 34: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

PubSubHubbub

2.Subscriber POSTs subscription request to the Hub. The request contains the URL where the Hub should POST new updates to the Subscriber.

Publisher SubscriberHub

I want to subscribe to feed

X. Send updates to this URL

Page 35: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

PubSubHubbub

3.Hub hits the URL to verify the request was authentic; Subscriber responds with confirmation to the Hub.

Publisher SubscriberHub

Hey there! Did you really send this

request?

Page 36: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

PubSubHubbub

3.Hub hits the URL to verify the request was authentic; Subscriber responds with confirmation to the Hub.

Publisher SubscriberHub

Yup, that was really me, not a DoS attacker.

Page 37: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

PubSubHubbub

4.a) Publisher notifies Hub about updates by POSTing feed URLs to the Hub; Hub pulls the feed again to find new entries.

I have new content for feed

X for you!

Publisher SubscriberHub

Page 38: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

PubSubHubbub

Give me your latest

content for feed X, please.

Publisher SubscriberHub

4.a) Publisher notifies Hub about updates by POSTing feed URLs to the Hub; Hub pulls the feed again to find new entries.

Page 39: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

PubSubHubbub

Here you go.

Publisher SubscriberHub

4.a) Publisher notifies Hub about updates by POSTing feed URLs to the Hub; Hub pulls the feed again to find new entries.

Page 40: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

PubSubHubbub

4.b) If the Publisher does not inform the Hub, the Hub will periodically poll the Publisher’s feed for new updates.

Give me your latest

content for feed X, please.

Publisher SubscriberHub

Page 41: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

PubSubHubbub

Here you go.

Publisher SubscriberHub

4.b) If the Publisher does not inform the Hub, the Hub will periodically poll the Publisher’s feed for new updates.

Page 42: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

PubSubHubbub

New update to feed X! Here

you go.

Publisher SubscriberHub

5.When Hub receives new update to feed X, it POSTs the update to the Subscriber’s endpoint URL.

Page 43: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

PubSubHubbub

New update to feed X! Here

you go.

Publisher SubscriberHub

6. If feed X has multiple subscribers, the Hub sends updates to all of them. This reduces load on the Publisher.

SubscriberSubscriberSubscriberSubscriberSubscriber

Page 44: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

PubSubHubbub

Page 45: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

code.google.com/p/pubsubhubbub

Page 46: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

salmon-protocol.org

Page 47: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Salmon

Source AggregatorPubSubHubbub

I have a new entry

1.New entry is posted on Source, pushed to subscribers via mechanisms such as PubSubHubbub, and re-published by an Aggregator.

Page 48: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Salmon

Source Aggregator

A new entry? I will re-publish it

right away.

1.New entry is posted on Source, pushed to subscribers via mechanisms such as PubSubHubbub, and re-published by an Aggregator.

PubSubHubbub

Page 49: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Salmon

Source AggregatorSalmon

I have a new comment on that entry from you!

2.New comment is posted on the Aggregator. It pushes the comment back upstream to the Source using Salmon

Page 50: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Salmon

Source Aggregator

2.New comment is posted on the Aggregator. It pushes the comment back upstream to the Source using Salmon

A new comment? I will publish it in the thread

right away [*].

Salmon

[*] After using magic security pixie dust to verify provenance.

Page 51: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Salmon

SourceAggregator

3.The Source pushes the comment to all subscribers.

PubSubHubbubAggregatorAggregatorAggregatorAggregatorAggregatorAggregator

I have a new comment.

Page 52: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Salmon

SourceAggregator

3.The Source pushes the comment to all subscribers.

PubSubHubbubAggregatorAggregatorAggregatorAggregatorAggregatorAggregator

Thanks, we'll re-publish this right

away.

Page 53: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Salmon

Source

3.The Source pushes the comment to all subscribers.

Aggregator

Salmon

I have a new comment on that entry from you!

Page 54: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Salmon

Source

3.The Source pushes the comment to all subscribers.

Aggregator

Salmon

A new comment? I will publish it in the thread

right away.

Page 55: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Salmon

Source

Aggregator

3.The Source pushes the comment to all subscribers.

PubSubHubbub

AggregatorAggregatorAggregatorAggregatorAggregatorAggregator

Thanks, we'll re-publish this right

away.

Aggregator

Salmon

Page 56: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

salmon-protocol.org

Page 57: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

activitystrea.ms

Page 58: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Activity Streams

Actor

Page 59: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Actor

Verb

Activity Streams

Page 60: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Actor

Verb

Object

Activity Streams

Page 61: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Timothy

Posts

A Note

Activity Streams

Page 62: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Barack Obama

Started Following

Timothy Jordan

Activity Streams

Page 63: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Timothy Jordan

Started Following

Barack Obama

Activity Streams

Page 64: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Timothy Jordan

Has Tea With

Bella Swan

Activity Streams

Page 65: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Timothy Jordan

Has Tea With

Bella Swan

Activity Streams

Page 66: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

activitystrea.ms

Page 67: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 68: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 69: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Google Buzz API

Page 70: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Warning!

Page 71: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 72: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 73: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 74: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Activity Streams

Page 75: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Actor

Verb

Object

Page 76: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Timothy

Posts

A Note

Page 77: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

{  "kind": "buzz#activity",  "title": "note to self",  "published": "2010-05-09T02:53:13.000Z",  "updated": "2010-05-09T02:53:13.730Z",   "id": "tag:google.com,2010:buzz:foo",  "links": {   "liked": [    {     "href": "https://www.googleapis.com/buzz/v1/activities/110242419133439594545/@self/tag:google.com,2010:buzz:z13ispojgwqsinyij04chlupum2ytbspsa4/@liked?alt\u003djson",     "type": "application/json",     "count": 4    }   ],   "alternate": [    {     "href": "http://www.google.com/buzz/a/google.com",     "type": "text/html"    }   ],   "self": [    {     "href": "https://www.googleapis.com/buzz/v1/activities/110242419133439594545/@self/tag:google.com,2010:buzz:z13ispojgwqsinyij04chlupum2ytbspsa4?alt\u003djson",     "type": "json"    }   ],   "replies": [    {     "href": "{url}/{userId}/@self/{commentId}/@comments?alt=json",     "type": "application/json",     "count": 2,     "updated": "2010-05-09T02:53:13.730Z"    }   ]  },

  "actor": {   "id": "{id}",   "name": "Timothy Jordan",   "profileUrl": "{url}/captaintimothy",   "thumbnailUrl": "{url}/captaintimothy/thumb.jpg"  },  "verbs": [   "post"  ],  "object": {   "type": "note",   "content": "content goes here",   "links": {    "alternate": [     {      "href": "http://www.google.com/buzz/a/google.com",      "type": "text/html"     }    ]   }  },

Page 78: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

{  "kind": "buzz#activity",  "title": "note to self",  "published": "2010-05-09T02:53:13.000Z",  "updated": "2010-05-09T02:53:13.730Z",   "id": "tag:google.com,2010:buzz:foo",  "links": {   "liked": [    {     "href": "https://www.googleapis.com/buzz/v1/activities/110242419133439594545/@self/tag:google.com,2010:buzz:z13ispojgwqsinyij04chlupum2ytbspsa4/@liked?alt\u003djson",     "type": "application/json",     "count": 4    }   ],   "alternate": [    {     "href": "http://www.google.com/buzz/a/google.com",     "type": "text/html"    }   ],   "self": [    {     "href": "https://www.googleapis.com/buzz/v1/activities/110242419133439594545/@self/tag:google.com,2010:buzz:z13ispojgwqsinyij04chlupum2ytbspsa4?alt\u003djson",     "type": "json"    }   ],   "replies": [    {     "href": "{url}/{userId}/@self/{commentId}/@comments?alt=json",     "type": "application/json",     "count": 2,     "updated": "2010-05-09T02:53:13.730Z"    }   ]  },  "actor": {   "id": "{id}",   "name": "Timothy Jordan",   "profileUrl": "{url}/captaintimothy",   "thumbnailUrl": "{url}/captaintimothy/thumb.jpg"  },

  "verbs": [   "post"  ],  "object": {   "type": "note",   "content": "content goes here",   "links": {    "alternate": [     {      "href": "http://www.google.com/buzz/a/google.com",      "type": "text/html"     }    ]   }  },  "source": {   "title": "Buzz"  },  "visibility": {   "entries": [

Page 79: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

{  "kind": "buzz#activity",  "title": "note to self",  "published": "2010-05-09T02:53:13.000Z",  "updated": "2010-05-09T02:53:13.730Z",   "id": "tag:google.com,2010:buzz:foo",  "links": {   "liked": [    {     "href": "https://www.googleapis.com/buzz/v1/activities/110242419133439594545/@self/tag:google.com,2010:buzz:z13ispojgwqsinyij04chlupum2ytbspsa4/@liked?alt\u003djson",     "type": "application/json",     "count": 4    }   ],   "alternate": [    {     "href": "http://www.google.com/buzz/a/google.com",     "type": "text/html"    }   ],   "self": [    {     "href": "https://www.googleapis.com/buzz/v1/activities/110242419133439594545/@self/tag:google.com,2010:buzz:z13ispojgwqsinyij04chlupum2ytbspsa4?alt\u003djson",     "type": "json"    }   ],   "replies": [    {     "href": "{url}/{userId}/@self/{commentId}/@comments?alt=json",     "type": "application/json",     "count": 2,     "updated": "2010-05-09T02:53:13.730Z"    }   ]  },  "actor": {   "id": "{id}",   "name": "Timothy Jordan",   "profileUrl": "{url}/captaintimothy",   "thumbnailUrl": "{url}/captaintimothy/thumb.jpg"  },  "verbs": [   "post"  ],

  "object": {   "type": "note",   "content": "content goes here"   }  },  "source": {   "title": "Buzz"  },  "visibility": {   "entries": [    {     "id": "https://www.googleapis.com/buzz/v1/people/@me/@groups/@public?alt\u003djson",     "title": "Public"    }   ]  } }

Page 80: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

{  "kind": "buzz#activity",

  "title": "note to self",  "published": "2010-05-09T02:53:13.000Z",  "updated": "2010-05-09T02:53:13.730Z",   "id": "tag:google.com,2010:buzz:foo",  "links": {   "liked": [    {     "href": "https://www.googleapis.com/buzz/v1/activities/110242419133439594545/@self/tag:google.com,2010:buzz:z13ispojgwqsinyij04chlupum2ytbspsa4/@liked?alt\u003djson",     "type": "application/json",     "count": 0    }   ],   "alternate": [    {     "href": "http://www.google.com/buzz/a/google.com",     "type": "text/html"    }   ],   "self": [    {     "href": "https://www.googleapis.com/buzz/v1/activities/110242419133439594545/@self/tag:google.com,2010:buzz:z13ispojgwqsinyij04chlupum2ytbspsa4?alt\u003djson",

Page 81: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

{  "kind": "buzz#activity",  "title": "note to self",  "published": "2010-05-09T02:53:13.000Z",  "updated": "2010-05-09T02:53:13.730Z",   "id": "tag:google.com,2010:buzz:foo",  "links": {

   "liked": [    {     "href": "{url}/{userid}/@self/{commentId}/@liked?alt=json",     "type": "application/json",     "count": 4, "updated": "2010-05-09T02:53:13.730Z"    }   ],   "alternate": [    {     "href": "http://www.google.com/buzz/a/google.com",     "type": "text/html"    }   ],   "self": [    {     "href": "https://www.googleapis.com/buzz/v1/activities/110242419133439594545/@self/tag:google.com,2010:buzz:z13ispojgwqsinyij04chlupum2ytbspsa4?alt\u003djson",     "type": "json"

Page 82: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

{  "kind": "buzz#activity",  "title": "note to self",  "published": "2010-05-09T02:53:13.000Z",  "updated": "2010-05-09T02:53:13.730Z",   "id": "tag:google.com,2010:buzz:foo",  "links": {   "liked": [    {     "href": "https://www.googleapis.com/buzz/v1/activities/110242419133439594545/@self/tag:google.com,2010:buzz:z13ispojgwqsinyij04chlupum2ytbspsa4/@liked?alt\u003djson",     "type": "application/json",     "count": 4    }   ],   "alternate": [    {     "href": "http://www.google.com/buzz/a/google.com",     "type": "text/html"    }   ],   "self": [    {     "href": "https://www.googleapis.com/buzz/v1/activities/110242419133439594545/@self/tag:google.com,2010:buzz:z13ispojgwqsinyij04chlupum2ytbspsa4?alt\u003djson",     "type": "json"    }   ],

   "replies": [    {     "href": "{url}/{userId}/@self/{commentId}/@comments?alt=json",     "type": "application/json",     "count": 2,     "updated": "2010-05-09T02:53:13.730Z"    }   ]  },  "actor": {   "id": "110242419133439594545",   "name": "Timothy Jordan",   "profileUrl": "{url}/captaintimothy",   "thumbnailUrl": "{url}/captaintimothy/thumb.jpg"  },  "verbs": [   "post"  ],  "object": {

Page 83: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

{  "kind": "buzz#activity",  "title": "note to self",  "published": "2010-05-09T02:53:13.000Z",  "updated": "2010-05-09T02:53:13.730Z",   "id": "tag:google.com,2010:buzz:foo",  "links": {   "liked": [    {     "href": "https://www.googleapis.com/buzz/v1/activities/110242419133439594545/@self/tag:google.com,2010:buzz:z13ispojgwqsinyij04chlupum2ytbspsa4/@liked?alt\u003djson",     "type": "application/json",     "count": 4    }   ],   "alternate": [    {     "href": "http://www.google.com/buzz/a/google.com",     "type": "text/html"    }   ],   "self": [    {     "href": "https://www.googleapis.com/buzz/v1/activities/110242419133439594545/@self/tag:google.com,2010:buzz:z13ispojgwqsinyij04chlupum2ytbspsa4?alt\u003djson",     "type": "json"    }   ],   "replies": [    {     "href": "{url}/{userId}/@self/{commentId}/@comments?alt=json",     "type": "application/json",     "count": 2,     "updated": "2010-05-09T02:53:13.730Z"    }   ]  },  "actor": {   "id": "110242419133439594545",   "name": "Chris Chabot",   "profileUrl": "{url}/chabotc",   "thumbnailUrl": "{url}/chabotc/thumb.jpg"  },  "verbs": [   "post"  ],  "object": {   "type": "note",   "content": "content goes here",   "links": {    "alternate": [     {      "href": "http://www.google.com/buzz/a/google.com",      "type": "text/html"     }    ]   }  },

  "source": {   "title": "Buzz"  },  "visibility": {   "entries": [    {     "id": "https://www.googleapis.com/buzz/v1/people/@me/@groups/@public?alt\u003djson",     "title": "Public"    }   ]  } }

Page 84: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

{  "kind": "buzz#activity",  "title": "note to self",  "published": "2010-05-09T02:53:13.000Z",  "updated": "2010-05-09T02:53:13.730Z",   "id": "tag:google.com,2010:buzz:foo",  "links": {   "liked": [    {     "href": "https://www.googleapis.com/buzz/v1/activities/110242419133439594545/@self/tag:google.com,2010:buzz:z13ispojgwqsinyij04chlupum2ytbspsa4/@liked?alt\u003djson",     "type": "application/json",     "count": 4    }   ],   "alternate": [    {     "href": "http://www.google.com/buzz/a/google.com",     "type": "text/html"    }   ],   "self": [    {     "href": "https://www.googleapis.com/buzz/v1/activities/110242419133439594545/@self/tag:google.com,2010:buzz:z13ispojgwqsinyij04chlupum2ytbspsa4?alt\u003djson",     "type": "json"    }   ],   "replies": [    {     "href": "{url}/{userId}/@self/{commentId}/@comments?alt=json",     "type": "application/json",     "count": 2,     "updated": "2010-05-09T02:53:13.730Z"    }   ]  },  "actor": {   "id": "110242419133439594545",   "name": "Chris Chabot",   "profileUrl": "{url}/chabotc",   "thumbnailUrl": "{url}/chabotc/thumb.jpg"  },  "verbs": [   "post"  ],  "object": {   "type": "note",   "content": "content goes here",   "links": {    "alternate": [     {      "href": "http://www.google.com/buzz/a/google.com",      "type": "text/html"     }    ]   }  },  "source": {   "title": "Buzz"  },

  "visibility": {   "entries": [    {     "id": "{url}/people/@me/@groups/@public?alt=json",     "title": "Public"    }   ]  } }

Page 85: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

{  "kind": "buzz#activity",  "title": "note to self",  "published": "2010-05-09T02:53:13.000Z",  "updated": "2010-05-09T02:53:13.730Z",   "id": "tag:google.com,2010:buzz:foo",  "links": {   "liked": [    {     "href": "https://www.googleapis.com/buzz/v1/activities/110242419133439594545/@self/tag:google.com,2010:buzz:z13ispojgwqsinyij04chlupum2ytbspsa4/@liked?alt\u003djson",     "type": "application/json",     "count": 4    }   ],   "alternate": [    {     "href": "http://www.google.com/buzz/a/google.com",     "type": "text/html"    }   ],   "self": [    {     "href": "https://www.googleapis.com/buzz/v1/activities/110242419133439594545/@self/tag:google.com,2010:buzz:z13ispojgwqsinyij04chlupum2ytbspsa4?alt\u003djson",     "type": "json"    }   ],   "replies": [    {     "href": "{url}/{userId}/@self/{commentId}/@comments?alt=json",     "type": "application/json",     "count": 2,     "updated": "2010-05-09T02:53:13.730Z"    }   ]  },  "actor": {   "id": "110242419133439594545",   "name": "Chris Chabot",   "profileUrl": "{url}/chabotc",   "thumbnailUrl": "{url}/chabotc/thumb.jpg"  },  "verbs": [   "post"  ],  "object": {   "type": "note",   "content": "content goes here",   "links": {    "alternate": [     {      "href": "http://www.google.com/buzz/a/google.com",      "type": "text/html"     }    ]   }  },  "source": {   "title": "Buzz"  },  "visibility": {   "entries": [    {     "id": "{url}/people/@me/@groups/@public?alt=json",     "title": "Public"    }   ] },

"geocode": "37.783471 -122.39922", "address": "701-737 Folsom St, San Francisco, CA 94103, USA", "placeName": "300 3rd St, San Francisco, CA 94107" } }

Page 86: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 87: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

    "object": {     "type": "note",     "content": "content goes here",

"attachments": [ { "type": "article", "title": "Name of the link", "links": { "alternate": [ { "href": "{url}/to/article.html", "type": "text/html" } ] } } ]    }

Page 88: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 89: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

    "object": {     "type": "note",     "content": "content goes here",

     "attachments": [      {       "type": "photo",       "links": {        "preview": [         {          "href": "{url}/image_thumb.jpg",          "type": "image/jpeg"         }        ],        "enclosure": [         {          "href": "{url}/image.jpg",          "type": "image/jpeg",          "height": 190,          "width": 260         }        ]       }      }     ]    }

Page 90: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

    "object": {     "type": "note",     "content": "content goes here", "attachments": [ {

"type": "video", "title": "video description goes here", "links": { "alternate": [ { "href": "http://www.youtube.com/watch?v=abcdef", "type": "text/html" } ], "preview": [ { "href": "{url}/default.jpg", "type": "image/jpeg" }, { "href": "{url}/proxy?thumbnail_default.jpg", "type": "image/jpeg" } ] }

Page 91: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

FavoriteFollowFriendJoinPlayPostSaveShareTagUpdate

ArticleAudioBookmarkCommentFileFolderGroupListNotePerson

PhotoPhoto AlbumPlacePlaylistProductReviewServiceStatusVideo

Verbs Objects

Page 92: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

FavoriteFollowFriendJoinPlayPostSaveShareTagUpdate

ArticleAudioBookmarkCommentFileFolderGroupListNotePerson

PhotoPhoto AlbumPlacePlaylistProductReviewServiceStatusVideo

Verbs Objects

Page 93: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 94: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 95: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Activity Streams

Page 96: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

https://www.google.com/buzz/api/auth/OAuthAuthorizeToken?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fbuzz&domain=www.example.org&oauth_token=

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

Page 97: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 98: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 99: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 100: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 101: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

PubSubHubbub

Page 102: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 103: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Photo credit: Nandhp, used under the Creative Commons Attribution-Share Alike 3.0 Unported license.

Developer DayGoogle 2010

Page 104: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 105: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 106: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 107: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Examples

Page 108: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

buzz-bingo.appspot.com

Page 109: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 110: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 111: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 112: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 113: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 114: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 115: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 116: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 117: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 118: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 119: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Sign-In & Auth for Buzz

client = buzz.Client()client.build_oauth_consumer(  OAUTH_CONSUMER_KEY,  OAUTH_CONSUMER_SECRET)client.oauth_scopes.append(  buzz.FULL_ACCESS_SCOPE)

Page 120: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Sign-In & Auth for Buzz

request_token = \  client.fetch_oauth_request_token(    'http://example.com/oauth/callback/'  )# Save request token to the data storeauthorization_url = \  client.build_oauth_authorization_url(    request_token  )

Page 121: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

# User visits the authorization_url

Sign-In & Auth for Buzz

Page 122: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 123: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 124: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Sign-In & Auth for Buzz

verifier = request.get('oauth_verifier')# Lookup request_token in data storeclient.oauth_request_token = request_tokenaccess_token = \  client.fetch_oauth_access_token(verifier)# Save access token to the data store

Page 125: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 126: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 127: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 128: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 129: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 130: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 131: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 132: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Board Marked

if post.attachments:  for attachment in post.attachments:    if attachment.type == 'article':      self.award_badge('share')      breakif post.geocode and \    post.actor.id != self.key().name():  self.award_badge('geo')elif post.geocode:  self.award_badge('mobile')

Page 133: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Board Marked

# Create the attachments for the postbadge_attachment = buzz.Attachment(  type='photo', enclosure=badge.badge_icon)link_attachment = buzz.Attachment(  type='article',  title='Buzz Bingo',  uri='http://buzz-bingo.appspot.com/')

Page 134: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Board Marked

# Assemble our announcement Buzz postbadge_post = buzz.Post(  content=post_content,  attachments=[    badge_attachment,    link_attachment  ],  geocode=VENUE_GEOCODE,  place_id=VENUE_PLACE_ID)# Create the postself.client.create_post(badge_post)

Page 135: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 136: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 137: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 138: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Bingo!

if (5 in horizontal_counts) or \    (5 in vertical_counts):  self.award_badge('bingo')

Page 139: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Page 140: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Buzz Bingo is open source!code.google.com/p/buzz-bingo

buzz-bingo.appspot.com

Page 141: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Track

Page 142: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Extras

Page 143: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Timothy JordanDeveloper Advocate, Google

buzz.timothyjordan.com@timothyjordan

#gdd2010jp

Office Hours16:00 - 16:30By the “Cool API” sign

Let’s Talk

Page 144: Google Developer Day 2010 Japan: 新 SocialWeb: 全てはオープンスタンダードの元に (ティモシー ジョーダン)

Developer DayGoogle 2010

Links

https://code.google.com/apis/buzz/docs/

http://code.google.com/p/oacurl/ http://code.google.com/p/buzz-php-client/

http://code.google.com/p/buzz-python-client/http://code.google.com/p/buzz-java-client/

code.google.com/p/buzz-codelabscode.google.com/p/buzz-mood