0.0.20240428 • Published 6 days ago

@maxim_mazurok/gapi.client.servicedirectory-v1 v0.0.20240428

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

TypeScript typings for Service Directory API v1

Service Directory is a platform for discovering, publishing, and connecting services. For detailed description please check documentation.

Installing

Install typings for Service Directory API:

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

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 Service Directory API resources:

0.0.20240428

6 days ago

0.0.20240420

10 days ago

0.0.20240305

2 months ago

0.0.20240226

2 months ago

0.0.20240220

3 months ago

0.0.20240212

3 months ago

0.0.20240204

3 months ago

0.0.20240121

3 months ago

0.0.20240113

4 months ago

0.0.20240107

4 months ago

0.0.20240101

4 months ago

0.0.20231217

5 months ago

0.0.20231130

5 months ago

0.0.20231106

6 months ago

0.0.20231029

6 months ago

0.0.20230716

10 months ago

0.0.20230812

9 months ago

0.0.20231112

6 months ago

0.0.20231015

7 months ago

0.0.20230806

9 months ago

0.0.20230729

9 months ago

0.0.20230723

10 months ago

0.0.20231001

7 months ago

0.0.20231022

7 months ago

0.0.20230618

11 months ago

0.0.20230516

12 months ago

0.0.20230521

12 months ago

0.0.20230529

11 months ago

0.0.20230603

11 months ago

0.0.20230316

1 year ago

0.0.20230302

1 year ago

0.0.20230309

1 year ago

0.0.20230330

1 year ago

0.0.20230220

1 year ago

0.0.20230323

1 year ago

0.0.20230209

1 year ago

0.0.20221103

1 year ago

0.0.20230105

1 year ago

0.0.20221201

1 year ago

0.0.20221208

1 year ago

0.0.20221020

2 years ago

0.0.20220930

2 years ago

0.0.20220921

2 years ago

0.0.20220817

2 years ago

0.0.20220907

2 years ago

0.0.20220831

2 years ago

0.0.20220824

2 years ago

0.0.20220914

2 years ago

0.0.20220811

2 years ago

0.0.20220804

2 years ago

0.0.20220728

2 years ago