Skip to content

Commit e8e6c73

Browse files
charlesreid1mcdonc
authored andcommitted
Update groupsettings.py (#504)
Update groupsettings sample to use non-deprecated oauth2client API.
1 parent df70cca commit e8e6c73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/groupssettings/groupsettings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
import httplib2
3838
from oauth2client.client import flow_from_clientsecrets
3939
from oauth2client.file import Storage
40-
from oauth2client.tools import run
40+
from oauth2client.tools import run_flow
4141

4242

4343
# CLIENT_SECRETS, name of a file containing the OAuth 2.0 information for this
@@ -155,7 +155,7 @@ def main(argv):
155155
if credentials is None or credentials.invalid:
156156
print('invalid credentials')
157157
# Save the credentials in storage to be used in subsequent runs.
158-
credentials = run(FLOW, storage)
158+
credentials = run_flow(FLOW, storage)
159159

160160
# Create an httplib2.Http object to handle our HTTP requests and authorize it
161161
# with our good Credentials.

0 commit comments

Comments
 (0)