Skip to content

Commit f6a598b

Browse files
committed
fix sample so it uses the latest oauth flow
1 parent 50dce60 commit f6a598b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.hgignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ syntax: glob
66
.gitignore
77
samples/cmdline/*.dat
88
htmlcov/*
9+
.coverage

samples/appengine/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
from apiclient.ext.appengine import FlowThreeLeggedProperty
2727
from apiclient.ext.appengine import OAuthCredentialsProperty
2828
from apiclient.oauth import FlowThreeLegged
29-
from apiclient.oauth import buzz_discovery
3029
from google.appengine.api import users
3130
from google.appengine.ext import db
3231
from google.appengine.ext import webapp
@@ -69,7 +68,8 @@ def get(self):
6968
'logout': logout
7069
}))
7170
else:
72-
flow = FlowThreeLegged(buzz_discovery,
71+
p = build("buzz", "v1")
72+
flow = FlowThreeLegged(p.auth_discovery(),
7373
consumer_key='anonymous',
7474
consumer_secret='anonymous',
7575
user_agent='google-api-client-python-buzz-webapp/1.0',

0 commit comments

Comments
 (0)