mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-17 08:52:29 +01:00
chore(manually_added): Add support for adding unlisted APIs
The photoslibrary API is not listed however is still available. This adds a method of manually adding APIs to the shared.yaml and adds the photoslibary API info. Fixes #198
This commit is contained in:
@@ -22,6 +22,14 @@
|
||||
|
||||
discovery_url = 'https://www.googleapis.com/discovery/v1/'
|
||||
apis = json.loads(urllib2.urlopen(discovery_url + "apis").read())
|
||||
|
||||
for manualy_api in api.get('manually_added', list()):
|
||||
apis['items'].append({
|
||||
'name': manualy_api['name'],
|
||||
'version': manualy_api['version'],
|
||||
'discoveryRestUrl': manualy_api['discovery_rest_url']
|
||||
})
|
||||
|
||||
json_api_targets = []
|
||||
|
||||
suffix = make.target_suffix
|
||||
|
||||
Reference in New Issue
Block a user