Class Discovery (7.1.0)

Package

googleapis-common

Constructors

(constructor)(options)

constructor(options: DiscoveryOptions);

Discovery for discovering API endpoints

Parameter
NameDescription
options DiscoveryOptions

Options for discovery

Methods

discoverAllAPIs(discoveryUrl)

discoverAllAPIs(discoveryUrl: string): Promise<{}>;

Generate all APIs and return as in-memory object.

Parameter
NameDescription
discoveryUrl string
Returns
TypeDescription
Promise<{}>

discoverAPI(apiDiscoveryUrl)

discoverAPI(apiDiscoveryUrl: string | {
        url?: string;
    }): Promise<EndpointCreator>;

Generate API file given discovery URL

Parameter
NameDescription
apiDiscoveryUrl string | { url?: string; }

URL or filename of discovery doc for API

Returns
TypeDescription
Promise<EndpointCreator>

A promise that resolves with a function that creates the endpoint