@maxim_mazurok/gapi.client.versionhistory-v1
v0.0.20241120
Published
TypeScript typings for versionhistory.googleapis.com API v1
Downloads
6,156
Readme
TypeScript typings for versionhistory.googleapis.com API v1
Version History API - Prod For detailed description please check documentation.
Installing
Install typings for versionhistory.googleapis.com API:
npm install @types/gapi.client.versionhistory-v1 --save-dev
Usage
You need to initialize Google API client in your code:
gapi.load('client', () => {
// now we can use gapi.client
// ...
});
Then load api client wrapper:
gapi.client.load(
'https://versionhistory.googleapis.com/$discovery/rest?version=v1',
() => {
// now we can use:
// gapi.client.versionhistory
}
);
// Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
gapi.client.load('versionhistory', 'v1', () => {
// now we can use:
// gapi.client.versionhistory
});
After that you can use versionhistory.googleapis.com API resources:
/*
Returns list of platforms that are available for a given product. The resource "product" has no resource name in its name.
*/
await gapi.client.versionhistory.platforms.list({parent: 'parent'});