new GoogleApis(options)
GoogleApis constructor.
Parameters:
Name | Type | Description |
---|---|---|
options |
Configuration options. |
Methods
addAPIs(apisToAdd)
Add APIs endpoints to googleapis object E.g. googleapis.drive and googleapis.datastore
Parameters:
Name | Type | Description |
---|---|---|
apisToAdd |
Apis to be added to this GoogleApis instance. |
(async) discoverAPI(path, options)
Dynamically generate an Endpoint object from a discovery doc.
Parameters:
Name | Type | Description |
---|---|---|
path |
Url or file path to discover doc for a single API. |
|
options |
Options to configure the Endpoint object generated from the discovery doc. |
Returns:
Type | Description |
---|---|
A promise that resolves with the configured endpoint. |
getSupportedAPIs()
Obtain a Map of supported APIs, along with included API versions.
options(options)
Set options.
Parameters:
Name | Type | Description |
---|---|---|
options |
Configuration options. |