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 cd76a54 commit 592c5cdCopy full SHA for 592c5cd
vision/api/label/label.py
@@ -32,9 +32,6 @@
32
33
from googleapiclient import discovery
34
from oauth2client.client import GoogleCredentials
35
-
36
-# The url template to retrieve the discovery document for trusted testers.
37
-DISCOVERY_URL = 'https://{api}.googleapis.com/$discovery/rest?version={apiVersion}' # noqa
38
# [END import_libraries]
39
40
@@ -43,8 +40,7 @@ def main(photo_file):
43
44
41
# [START authenticate]
45
42
credentials = GoogleCredentials.get_application_default()
46
- service = discovery.build('vision', 'v1', credentials=credentials,
47
- discoveryServiceUrl=DISCOVERY_URL)
+ service = discovery.build('vision', 'v1', credentials=credentials)
48
# [END authenticate]
49
50
# [START construct_request]
0 commit comments