Skip to content

Commit

Permalink
Make authn sample more uniform with the java one.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerjou Cheng committed Aug 14, 2015
1 parent b453dc5 commit 6ee5482
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bigquery/samples/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ def get_service():
from oauth2client.client import GoogleCredentials

credentials = GoogleCredentials.get_application_default()
if credentials.create_scoped_required():
credentials = credentials.create_scoped(
'https://www.googleapis.com/auth/bigquery')

# The build() method takes care of injecting the proper scopes
# for the given service, when using application default credentials.
return build('bigquery', 'v2', credentials=credentials)
# [END get_service]

Expand Down

0 comments on commit 6ee5482

Please sign in to comment.