1.0.20220802 • Published 2 years ago

@maxim_mazurok/gapi.client.cloudscheduler v1.0.20220802

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

2 years ago

1.0.20220721

2 years ago

1.0.20220608

2 years ago

1.0.20220704

2 years ago

1.0.20220802

2 years ago

1.0.20220514

2 years ago

1.0.20220526

2 years ago

1.0.20220503

2 years ago

1.0.20220321

2 years ago

1.0.20220408

2 years ago

1.0.20220309

2 years ago

1.0.20220106

2 years ago

1.0.20220212

2 years ago

1.0.20211106

3 years ago

1.0.20211202

2 years ago

1.0.20211015

3 years ago

1.0.20210929

3 years ago

1.0.20210914

3 years ago

1.0.20210827

3 years ago

1.0.20210816

3 years ago

1.0.20210730

3 years ago

1.0.20210713

3 years ago

1.0.20210625

3 years ago

1.0.20210609

3 years ago

1.0.20210601

3 years ago

1.0.20210517

3 years ago

1.0.20210501

3 years ago

1.0.20210420

3 years ago

1.0.20210315

3 years ago

1.0.20210303

3 years ago

1.0.20210222

3 years ago

1.0.20210209

3 years ago

1.0.20210129

3 years ago

1.0.20210115

3 years ago

1.0.20201214

3 years ago

1.0.20201202

3 years ago

1.0.20201105

4 years ago

1.0.20201026

4 years ago