| Home | Trees | Indices | Help |
|---|
|
|
import buzz
client = buzz.Client()
client.build_oauth_consumer('your-app.appspot.com', 'consumer_secret')
client.oauth_scopes.append(buzz.FULL_ACCESS_SCOPE)
request_token = \
client.fetch_oauth_request_token('http://example.com/callback/')
# Persist the request_token
authorization_url = client.build_oauth_authorization_url()
self.redirect(authorization_url)
import buzz
client = buzz.Client()
client.build_oauth_consumer('your-app.appspot.com', 'consumer_secret')
client.oauth_scopes.append(buzz.FULL_ACCESS_SCOPE)
# Retrieve the persisted request token
client.build_oauth_request_token(
request_token.key, request_token.secret
)
verifier = self.request.get('oauth_verifier')
access_token = \
client.fetch_oauth_access_token(verifier)
# Persist the access_token
import buzz
client = buzz.Client()
client.build_oauth_consumer('your-app.appspot.com', 'consumer_secret')
client.oauth_scopes.append(buzz.FULL_ACCESS_SCOPE)
# Retrieve the persisted access token
client.build_oauth_access_token(
access_token.key, access_token.secret
)
results = client.posts(user_id='@me', type_id='@consumption')
results = client.posts(user_id='@me', type_id='@self')
results = client.posts(user_id='googlebuzz', type_id='@public')
results = client.posts( user_id='googlebuzz', type_id='@public', max_results=100 )
post = buzz.Post( content="This is some example content." ) client.create_post(post)
attachment = buzz.Attachment( type='article', title='Google Buzz', uri='http://www.google.com/buzz' ) post = buzz.Post( content="Google Buzz is really cool.", attachments=[attachment] ) client.create_post(post)
post = buzz.Post(
content="Google Buzz is really cool.",
geocode=('37.421776', '-122.084155')
)
client.create_post(post)
|
|||
|
RetrieveError This exception gets raised if there was some kind of HTTP or network error while accessing the API. |
|||
|
JSONParseError This exception gets raised if the API sends data that does not match what the client was expecting. |
|||
|
Client The Buzz API Client object is the primary method of making calls against the Buzz API. |
|||
|
Post The Post object represents a post within Buzz. |
|||
|
Comment The Comment object represents a comment on a Post within Buzz. |
|||
|
Link The Link object represents a hyperlink. |
|||
|
Attachment The Attachment object represents an attachment to a Post within Buzz. |
|||
|
Person The Person object represents a Buzz user. |
|||
|
Result The Result object encapsulates each result returned from the API. |
|||
|
ResultIterator A ResultIterator allows iteration over a result set. |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
default_path =
|
|||
CONFIG_PATH =
|
|||
CLIENT_CONFIG =
|
|||
API_PREFIX =
|
|||
READONLY_SCOPE =
|
|||
FULL_ACCESS_SCOPE =
|
|||
OAUTH_REQUEST_TOKEN_URI =
|
|||
OAUTH_ACCESS_TOKEN_URI =
|
|||
OAUTH_AUTHORIZATION_URI =
|
|||
DEBUG = False
|
|||
DEFAULT_PAGE_SIZE = 20
|
|||
__package__ = None
|
|||
|
|||
default_path
|
CONFIG_PATH
|
CLIENT_CONFIG
|
OAUTH_REQUEST_TOKEN_URI
|
OAUTH_ACCESS_TOKEN_URI
|
OAUTH_AUTHORIZATION_URI
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Wed Oct 20 13:13:56 2010 | http://epydoc.sourceforge.net |