TypeScript typings for Google Workspace Events API v1
The Google Workspace Events API lets you subscribe to events and manage change notifications across Google Workspace applications.
For detailed description please check documentation.
Installing
Install typings for Google Workspace Events API:
npm install @types/gapi.client.workspaceevents-v1 --save-dev
Usage
You need to initialize Google API client in your code:
gapi.load('client', () => {
});
Then load api client wrapper:
gapi.client.load(
'https://workspaceevents.googleapis.com/$discovery/rest?version=v1',
() => {
}
);
gapi.client.load('workspaceevents', 'v1', () => {
});
After that you can use Google Workspace Events API resources: