0.0.20240421 • Published 26 days ago

@maxim_mazurok/gapi.client.integrations-v1alpha v0.0.20240421

Weekly downloads
-
License
MIT
Repository
github
Last release
26 days ago

TypeScript typings for Application Integration API v1alpha

For detailed description please check documentation.

Installing

Install typings for Application Integration API:

npm install @types/gapi.client.integrations-v1alpha --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://integrations.googleapis.com/$discovery/rest?version=v1alpha',
  () => {
    // now we can use:
    // gapi.client.integrations
  }
);
// 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('integrations', 'v1alpha', () => {
  // now we can use:
  // gapi.client.integrations
});

Don't forget to authenticate your client before sending any request to resources:

// declare client_id registered in Google Developers Console
var client_id = '',
  scope = [
    // See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
    'https://www.googleapis.com/auth/cloud-platform',
  ],
  immediate = true;
// ...

gapi.auth.authorize(
  {client_id: client_id, scope: scope, immediate: immediate},
  authResult => {
    if (authResult && !authResult.error) {
      /* handle successful authorization */
    } else {
      /* handle authorization error */
    }
  }
);

After that you can use Application Integration API resources:

/*
Receives the auth code and auth config id to combine that with the client id and secret to retrieve access tokens from the token endpoint. Returns either a success or error message when it's done.
*/
await gapi.client.integrations.callback.generateToken({});

/*
Enumerates the regions for which Connector Platform is provisioned.
*/
await gapi.client.integrations.connectorPlatformRegions.enumerate({});
0.0.20240421

26 days ago

0.0.20240416

1 month ago

0.0.20240414

1 month ago

0.0.20240402

2 months ago

0.0.20240327

2 months ago

0.0.20240326

2 months ago

0.0.20240325

2 months ago

0.0.20240322

2 months ago

0.0.20240319

2 months ago

0.0.20240317

2 months ago

0.0.20240305

2 months ago

0.0.20240226

3 months ago

0.0.20240225

3 months ago

0.0.20240125

4 months ago

0.0.20240109

4 months ago

0.0.20231213

5 months ago

0.0.20230915

8 months ago

0.0.20231006

8 months ago

0.0.20230713

10 months ago

0.0.20231112

6 months ago

0.0.20230928

8 months ago

0.0.20230906

9 months ago

0.0.20230807

10 months ago

0.0.20230809

10 months ago

0.0.20231117

6 months ago

0.0.20231017

7 months ago

0.0.20230820

9 months ago

0.0.20230924

8 months ago

0.0.20230726

10 months ago

0.0.20230627

11 months ago

0.0.20230802

10 months ago

0.0.20231003

8 months ago

0.0.20231024

7 months ago

0.0.20231104

7 months ago

0.0.20231005

8 months ago

0.0.20230613

11 months ago

0.0.20230611

11 months ago

0.0.20230607

12 months ago

0.0.20230509

1 year ago

0.0.20230524

12 months ago

0.0.20230502

1 year ago

0.0.20230530

12 months ago

0.0.20230409

1 year ago

0.0.20230425

1 year ago

0.0.20230303

1 year ago

0.0.20230308

1 year ago

0.0.20230322

1 year ago

0.0.20230216

1 year ago

0.0.20230209

1 year ago

0.0.20230201

1 year ago

0.0.20230222

1 year ago

0.0.20230110

1 year ago

0.0.20230124

1 year ago

0.0.20230103

1 year ago

0.0.20230117

1 year ago

0.0.20221215

1 year ago

0.0.20221122

1 year ago

0.0.20221220

1 year ago

0.0.20221025

2 years ago

0.0.20221019

2 years ago

0.0.20220928

2 years ago