1.0.20220804 • Published 2 years ago

@maxim_mazurok/gapi.client.servicedirectory v1.0.20220804

Weekly downloads
98
License
MIT
Repository
github
Last release
2 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

2 years ago

1.0.20220622

2 years ago

1.0.20220706

2 years ago

1.0.20220630

2 years ago

1.0.20220720

2 years ago

1.0.20220728

2 years ago

1.0.20220804

2 years ago

1.0.20220505

2 years ago

1.0.20220428

2 years ago

1.0.20220511

2 years ago

1.0.20220518

2 years ago

1.0.20220526

2 years ago

1.0.20220601

2 years ago

1.0.20220421

2 years ago

1.0.20220315

2 years ago

1.0.20220325

2 years ago

1.0.20220407

2 years ago

1.0.20220413

2 years ago

1.0.20220330

2 years ago

1.0.20220302

2 years ago

1.0.20220224

2 years ago

1.0.20220310

2 years ago

1.0.20220115

2 years ago

1.0.20220111

2 years ago

1.0.20220119

2 years ago

1.0.20220203

2 years ago

1.0.20211110

2 years ago

1.0.20211202

2 years ago

1.0.20211103

2 years ago

1.0.20211021

3 years ago

1.0.20211027

3 years ago

1.0.20211015

3 years ago

1.0.20210920

3 years ago

1.0.20210914

3 years ago

1.0.20210907

3 years ago

1.0.20210831

3 years ago

1.0.20210825

3 years ago

1.0.20210818

3 years ago

1.0.20210811

3 years ago

1.0.20210804

3 years ago

1.0.20210721

3 years ago

1.0.20210716

3 years ago

1.0.20210707

3 years ago

1.0.20210616

3 years ago

1.0.20210608

3 years ago

1.0.20210602

3 years ago

1.0.20210526

3 years ago

1.0.20210521

3 years ago

1.0.20210512

3 years ago

1.0.20210505

3 years ago

1.0.20210422

3 years ago

1.0.20210414

3 years ago

1.0.20210407

3 years ago

1.0.20210331

3 years ago

1.0.20210324

3 years ago

1.0.20210316

3 years ago

1.0.20210310

3 years ago

1.0.20210303

3 years ago

1.0.20210225

3 years ago

1.0.20210213

3 years ago

1.0.20210211

3 years ago

1.0.20210203

3 years ago

1.0.20210127

3 years ago

1.0.20210121

3 years ago

1.0.20210114

3 years ago

1.0.20210106

3 years ago

1.0.20201210

3 years ago

1.0.20201204

3 years ago

1.0.20201112

3 years ago

1.0.20201104

3 years ago