Skip to content

Commit

Permalink
Merge 6ee5482 into b64a482
Browse files Browse the repository at this point in the history
  • Loading branch information
jerjou committed Aug 14, 2015
2 parents b64a482 + 6ee5482 commit a09f115
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 a09f115

Please sign in to comment.