1.0.20220804 • Published 3 years ago

@maxim_mazurok/gapi.client.servicedirectory v1.0.20220804

Weekly downloads
98
License
MIT
Repository
github
Last release
3 years 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('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:

1.0.20220612

3 years ago

1.0.20220622

3 years ago

1.0.20220706

3 years ago

1.0.20220630

3 years ago

1.0.20220720

3 years ago

1.0.20220728

3 years ago

1.0.20220804

3 years ago

1.0.20220505

3 years ago

1.0.20220428

3 years ago

1.0.20220511

3 years ago

1.0.20220518

3 years ago

1.0.20220526

3 years ago

1.0.20220601

3 years ago

1.0.20220421

3 years ago

1.0.20220315

3 years ago

1.0.20220325

3 years ago

1.0.20220407

3 years ago

1.0.20220413

3 years ago

1.0.20220330

3 years ago

1.0.20220302

3 years ago

1.0.20220224

3 years ago

1.0.20220310

3 years ago

1.0.20220115

3 years ago

1.0.20220111

4 years ago

1.0.20220119

3 years ago

1.0.20220203

3 years ago

1.0.20211110

4 years ago

1.0.20211202

4 years ago

1.0.20211103

4 years ago

1.0.20211021

4 years ago

1.0.20211027

4 years ago

1.0.20211015

4 years ago

1.0.20210920

4 years ago

1.0.20210914

4 years ago

1.0.20210907

4 years ago

1.0.20210831

4 years ago

1.0.20210825

4 years ago

1.0.20210818

4 years ago

1.0.20210811

4 years ago

1.0.20210804

4 years ago

1.0.20210721

4 years ago

1.0.20210716

4 years ago

1.0.20210707

4 years ago

1.0.20210616

4 years ago

1.0.20210608

4 years ago

1.0.20210602

4 years ago

1.0.20210526

4 years ago

1.0.20210521

4 years ago

1.0.20210512

4 years ago

1.0.20210505

4 years ago

1.0.20210422

4 years ago

1.0.20210414

4 years ago

1.0.20210407

4 years ago

1.0.20210331

4 years ago

1.0.20210324

4 years ago

1.0.20210316

4 years ago

1.0.20210310

4 years ago

1.0.20210303

4 years ago

1.0.20210225

4 years ago

1.0.20210213

4 years ago

1.0.20210211

4 years ago

1.0.20210203

4 years ago

1.0.20210127

4 years ago

1.0.20210121

4 years ago

1.0.20210114

4 years ago

1.0.20210106

5 years ago

1.0.20201210

5 years ago

1.0.20201204

5 years ago

1.0.20201112

5 years ago

1.0.20201104

5 years ago