Package
googleapis-commonConstructors
(constructor)(options)
constructor
(
options
:
DiscoveryOptions
);
Discovery for discovering API endpoints
Name | Description |
options | DiscoveryOptions
Options for discovery |
Methods
discoverAllAPIs(discoveryUrl)
discoverAllAPIs
(
discoveryUrl
:
string
)
:
Promise
< {}>;
Generate all APIs and return as in-memory object.
Name | Description |
---|---|
discoveryUrl | string
|
Type | Description |
---|---|
Promise <{}> |
discoverAPI(apiDiscoveryUrl)
discoverAPI
(
apiDiscoveryUrl
:
string
|
{
url
:
string
;
})
:
Promise<EndpointCreator>
;
Generate API file given discovery URL
Name | Description |
apiDiscoveryUrl | string | {
url: string;
}
URL or filename of discovery doc for API |
Type | Description |
Promise < EndpointCreator > | A promise that resolves with a function that creates the endpoint |