switch over to using discovery v0.3, now using descriptions if available
diff --git a/samples/api-python-client-doc/main.py b/samples/api-python-client-doc/main.py
index 2e9fa8d..afce74d 100755
--- a/samples/api-python-client-doc/main.py
+++ b/samples/api-python-client-doc/main.py
@@ -88,7 +88,8 @@
collections = []
for name in dir(service):
- if not "_" in name and callable(getattr(service, name)):
+ if not "_" in name and callable(getattr(service, name)) and hasattr(
+ getattr(service, name), '__is_resource__'):
collections.append(name)
for name in collections:
diff --git a/samples/buzz/buzz.py b/samples/buzz/buzz.py
index a82cfc7..a4f6840 100644
--- a/samples/buzz/buzz.py
+++ b/samples/buzz/buzz.py
@@ -35,7 +35,7 @@
flow = FlowThreeLegged(buzz_discovery,
consumer_key='anonymous',
consumer_secret='anonymous',
- user_agent='google-api-client-python-buzz-cmdline/1.0',
+ user_agent='python-buzz-sample/1.0',
domain='anonymous',
scope='https://www.googleapis.com/auth/buzz',
xoauth_displayname='Google API Client Example App')