mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2025-12-30 16:18:49 +01:00
refactor
This commit is contained in:
@@ -23,8 +23,8 @@
|
||||
if os.environ.get('FETCH_APIS') is not None:
|
||||
import urllib3
|
||||
http = urllib3.PoolManager()
|
||||
discovery_url = 'https://www.googleapis.com/discovery/v1/'
|
||||
apis = json.loads(http.request('GET', discovery_url + "apis").data)
|
||||
discovery_url = 'https://www.googleapis.com/discovery/v1/apis'
|
||||
apis = json.loads(http.request('GET', discovery_url).data)
|
||||
|
||||
print('Loaded {} apis from Google'.format(len(apis['items'])))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user