Skip to content

Commit

Permalink
Update groupsettings.py (googleapis#504)
Browse files Browse the repository at this point in the history
Update groupsettings sample to use non-deprecated oauth2client API.
  • Loading branch information
charlesreid1 authored and mcdonc committed Jul 14, 2018
1 parent df70cca commit e8e6c73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/groupssettings/groupsettings.py
Expand Up @@ -37,7 +37,7 @@
import httplib2
from oauth2client.client import flow_from_clientsecrets
from oauth2client.file import Storage
from oauth2client.tools import run
from oauth2client.tools import run_flow


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

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

0 comments on commit e8e6c73

Please sign in to comment.