Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b453dc5 commit 6ee5482Copy full SHA for 6ee5482
bigquery/samples/utils.py
@@ -21,9 +21,9 @@ def get_service():
21
from oauth2client.client import GoogleCredentials
22
23
credentials = GoogleCredentials.get_application_default()
24
- if credentials.create_scoped_required():
25
- credentials = credentials.create_scoped(
26
- '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.
27
return build('bigquery', 'v2', credentials=credentials)
28
# [END get_service]
29
0 commit comments