1.0.20220802 • Published 3 years ago

@maxim_mazurok/gapi.client.cloudscheduler v1.0.20220802

Weekly downloads
34
License
MIT
Repository
github
Last release
3 years ago

TypeScript typings for Cloud Scheduler API v1

Creates and manages jobs run on a regular recurring schedule. For detailed description please check documentation.

Installing

Install typings for Cloud Scheduler API:

npm install @types/gapi.client.cloudscheduler@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('cloudscheduler', 'v1', () => {
  // now we can use gapi.client.cloudscheduler
  // ...
});

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 Cloud Scheduler API resources:

1.0.20220621

3 years ago

1.0.20220721

3 years ago

1.0.20220608

3 years ago

1.0.20220704

3 years ago

1.0.20220802

3 years ago

1.0.20220514

3 years ago

1.0.20220526

3 years ago

1.0.20220503

3 years ago

1.0.20220321

3 years ago

1.0.20220408

3 years ago

1.0.20220309

3 years ago

1.0.20220106

3 years ago

1.0.20220212

3 years ago

1.0.20211106

4 years ago

1.0.20211202

4 years ago

1.0.20211015

4 years ago

1.0.20210929

4 years ago

1.0.20210914

4 years ago

1.0.20210827

4 years ago

1.0.20210816

4 years ago

1.0.20210730

4 years ago

1.0.20210713

4 years ago

1.0.20210625

4 years ago

1.0.20210609

4 years ago

1.0.20210601

4 years ago

1.0.20210517

4 years ago

1.0.20210501

4 years ago

1.0.20210420

4 years ago

1.0.20210315

4 years ago

1.0.20210303

4 years ago

1.0.20210222

4 years ago

1.0.20210209

4 years ago

1.0.20210129

4 years ago

1.0.20210115

4 years ago

1.0.20201214

5 years ago

1.0.20201202

5 years ago

1.0.20201105

5 years ago

1.0.20201026

5 years ago