We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5a2c7b commit 8a86957Copy full SHA for 8a86957
1 file changed
language/api/analyze.py
@@ -25,21 +25,15 @@
25
from oauth2client.client import GoogleCredentials
26
27
28
-# TODO REMOVE - when discovery is public
29
-DISCOVERY_URL = ('https://language.googleapis.com/$discovery/rest?'
30
- 'version=v1&labels=GOOGLE_INTERNAL')
31
-
32
33
def get_service():
34
credentials = GoogleCredentials.get_application_default()
35
scoped_credentials = credentials.create_scoped(
36
['https://www.googleapis.com/auth/cloud-platform'])
37
http = httplib2.Http()
38
scoped_credentials.authorize(http)
39
- # TODO Change to credentials=credentials
40
return discovery.build('language', 'v1',
41
http=http,
42
- discoveryServiceUrl=DISCOVERY_URL)
+ credentials=credentials)
43
44
45
def get_native_encoding_type():
0 commit comments