fix sample so it uses the latest oauth flow
diff --git a/samples/appengine/main.py b/samples/appengine/main.py
index 2116562..9f63d50 100755
--- a/samples/appengine/main.py
+++ b/samples/appengine/main.py
@@ -26,7 +26,6 @@
from apiclient.ext.appengine import FlowThreeLeggedProperty
from apiclient.ext.appengine import OAuthCredentialsProperty
from apiclient.oauth import FlowThreeLegged
-from apiclient.oauth import buzz_discovery
from google.appengine.api import users
from google.appengine.ext import db
from google.appengine.ext import webapp
@@ -69,7 +68,8 @@
'logout': logout
}))
else:
- flow = FlowThreeLegged(buzz_discovery,
+ p = build("buzz", "v1")
+ flow = FlowThreeLegged(p.auth_discovery(),
consumer_key='anonymous',
consumer_secret='anonymous',
user_agent='google-api-client-python-buzz-webapp/1.0',