Professional Documents
Culture Documents
buzz.timothyjordan.com
@timothyjordan
buzz.sporkmonger.com
@sporkmonger
• Open Standards
• Examples
• What’s next?
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/
alt
• alt=atom returns an Atom representation of the data.
• alt=json returns a JSON representation of the data.
prettyprint
• If prettyprint=true, the results returned by the server will be human readable
• Default: prettyprint=false
https://www.googleapis.com/buzz/v1/activities/@me/@self?alt=json&prettyprint=true
https://www.googleapis.com/buzz/v1/activities/@me/@self?max-results=20&c={token}
• q={query} search.
• lat, lon, radius geo location.
• bbox bounding box.
https://www.googleapis.com/buzz/v1/activities/search?q={q}&lat={l}&lon={l}&radius={r}
Activities
Activities
Objects
Shares
A Link
Started Following
Timothy Jordan
Started Following
Barack Obama
"visibility": {
"entries": [
{
"id": "{url}/people/@me/@groups/@public?alt=json",
"title": "Public"
}
]
}
}
"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"
}
]
}
}
client = buzz.Client()
client.build_oauth_consumer(
OAUTH_CONSUMER_KEY,
OAUTH_CONSUMER_SECRET
)
client.oauth_scopes.append(
buzz.FULL_ACCESS_SCOPE
)
request_token = \
client.fetch_oauth_request_token(
'http://example.com/oauth/callback/'
)
# Save request token to the data store
authorization_url = \
client.build_oauth_authorization_url(
request_token
)
for x in xrange(5):
for y in xrange(5):
if x != 2 or y != 2:
# We skip over the 'Free Space'
square = models.board.Square(
parent=self,
key_name=('%d:%d' % (x, y)),
topic=topics.pop()
)
square.put()
board[x][y] = square
horizontal_counts = [0, 0, 1, 0, 0]
vertical_counts = [0, 0, 1, 0, 0]
for x in xrange(5):
for y in xrange(5):
if self.board[x][y] and \
self.board[x][y].post_id:
horizontal_counts[y] += 1
vertical_counts[x] += 1
if (5 in horizontal_counts) or \
(5 in vertical_counts):
self.award_badge('bingo')
if not self.bingo_count:
self.bingo_count = 0
self.bingo_count += 1
self.put()
• Trending topics. Topics or posts that are accelerating in the last N minutes.
• Hot places: FInd places that have the most activity within a given geographic
area.
• Buzz List (like Reader bundles): Allow users to create and share collections of
other users. Allow them the ability to subscribe to lists of other users.
• Auto-follow: based on my remote account (e.g. Flickr)
• Spoiler detection: scan the user's consumption API and mute posts that talk
about certain TV shows.