0.0.20241011 • Published 9 months ago

@maxim_mazurok/gapi.client.jobs-v3 v0.0.20241011

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

TypeScript typings for Cloud Talent Solution API v3

Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters. For detailed description please check documentation.

Installing

Install typings for Cloud Talent Solution API:

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

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',

    // Manage job postings
    'https://www.googleapis.com/auth/jobs',
  ],
  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 Talent Solution API resources:

/*
Completes the specified prefix with keyword suggestions. Intended for use by a job search auto-complete search box.
*/
await gapi.client.jobs.projects.complete({name: 'name'});
0.0.20241011

9 months ago

0.0.20240916

10 months ago

0.0.20240815

11 months ago

0.0.20240614

1 year ago

0.0.20240620

1 year ago

0.0.20240404

1 year ago

0.0.20240311

1 year ago

0.0.20240202

1 year ago

0.0.20240125

1 year ago

0.0.20231128

2 years ago

0.0.20230817

2 years ago

0.0.20231018

2 years ago

0.0.20230920

2 years ago

0.0.20230925

2 years ago

0.0.20230719

2 years ago

0.0.20230717

2 years ago

0.0.20230919

2 years ago

0.0.20230711

2 years ago

0.0.20230914

2 years ago

0.0.20230713

2 years ago

0.0.20230714

2 years ago

0.0.20230906

2 years ago

0.0.20230908

2 years ago

0.0.20230822

2 years ago

0.0.20230705

2 years ago

0.0.20230523

2 years ago

0.0.20230531

2 years ago

0.0.20230413

2 years ago

0.0.20230314

2 years ago

0.0.20230416

2 years ago

0.0.20230317

2 years ago

0.0.20230320

2 years ago

0.0.20230221

2 years ago

0.0.20230425

2 years ago

0.0.20230305

2 years ago

0.0.20230228

2 years ago

0.0.20230303

2 years ago

0.0.20230308

2 years ago

0.0.20230309

2 years ago

0.0.20230306

2 years ago

0.0.20230406

2 years ago

0.0.20230312

2 years ago

0.0.20221116

3 years ago

0.0.20230104

3 years ago

0.0.20230120

2 years ago

0.0.20221219

3 years ago

0.0.20230114

3 years ago

0.0.20230111

3 years ago

0.0.20220928

3 years ago

0.0.20221026

3 years ago

0.0.20221101

3 years ago

0.0.20221024

3 years ago

0.0.20220923

3 years ago

0.0.20220919

3 years ago

0.0.20220831

3 years ago

0.0.20220818

3 years ago

0.0.20220802

3 years ago