Skip to content

Commit 8a86957

Browse files
committed
removed discovery service with public discovery
1 parent d5a2c7b commit 8a86957

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

language/api/analyze.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,15 @@
2525
from oauth2client.client import GoogleCredentials
2626

2727

28-
# TODO REMOVE - when discovery is public
29-
DISCOVERY_URL = ('https://language.googleapis.com/$discovery/rest?'
30-
'version=v1&labels=GOOGLE_INTERNAL')
31-
32-
3328
def get_service():
3429
credentials = GoogleCredentials.get_application_default()
3530
scoped_credentials = credentials.create_scoped(
3631
['https://www.googleapis.com/auth/cloud-platform'])
3732
http = httplib2.Http()
3833
scoped_credentials.authorize(http)
39-
# TODO Change to credentials=credentials
4034
return discovery.build('language', 'v1',
4135
http=http,
42-
discoveryServiceUrl=DISCOVERY_URL)
36+
credentials=credentials)
4337

4438

4539
def get_native_encoding_type():

0 commit comments

Comments
 (0)