0.0.20241024 • Published 9 months ago

@maxim_mazurok/gapi.client.recommendationengine-v1beta1 v0.0.20241024

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

TypeScript typings for Recommendations AI (Beta) v1beta1

Note that we now highly recommend new customers to use Retail API, which incorporates the GA version of the Recommendations AI funtionalities. To enable Retail API, please visit https://console.cloud.google.com/apis/library/retail.googleapis.com. The Recommendations AI service enables customers to build end-to-end personalized recommendation systems without requiring a high level of expertise in machine learning, recommendation system, or Google Cloud. For detailed description please check documentation.

Installing

Install typings for Recommendations AI (Beta):

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

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 Recommendations AI (Beta) resources:

0.0.20241024

9 months ago

0.0.20241010

9 months ago

0.0.20240926

9 months ago

0.0.20241003

9 months ago

0.0.20240919

10 months ago

0.0.20240830

10 months ago

0.0.20240826

11 months ago

0.0.20240530

1 year ago

0.0.20240808

11 months ago

0.0.20240801

11 months ago

0.0.20240725

12 months ago

0.0.20240523

1 year ago

0.0.20240618

1 year ago

0.0.20240610

1 year ago

0.0.20240702

1 year ago

0.0.20240820

11 months ago

0.0.20240715

12 months ago

0.0.20240516

1 year ago

0.0.20240509

1 year ago

0.0.20240502

1 year ago

0.0.20240418

1 year ago

0.0.20240411

1 year ago

0.0.20240401

1 year ago

0.0.20240321

1 year ago

0.0.20240307

1 year ago

0.0.20240229

1 year ago

0.0.20240226

1 year ago

0.0.20240201

1 year ago

0.0.20240118

1 year ago

0.0.20240111

1 year ago

0.0.20240108

2 years ago

0.0.20231213

2 years ago

0.0.20231130

2 years ago

0.0.20230810

2 years ago

0.0.20230710

2 years ago

0.0.20231109

2 years ago

0.0.20230914

2 years ago

0.0.20230713

2 years ago

0.0.20231011

2 years ago

0.0.20231016

2 years ago

0.0.20230929

2 years ago

0.0.20230629

2 years ago

0.0.20230921

2 years ago

0.0.20230720

2 years ago

0.0.20231019

2 years ago

0.0.20230727

2 years ago

0.0.20231102

2 years ago

0.0.20231005

2 years ago

0.0.20231026

2 years ago

0.0.20230622

2 years ago

0.0.20230515

2 years ago

0.0.20230608

2 years ago

0.0.20230524

2 years ago

0.0.20230412

2 years ago

0.0.20230413

2 years ago

0.0.20230306

2 years ago

0.0.20230330

2 years ago

0.0.20230420

2 years ago

0.0.20230321

2 years ago

0.0.20230218

2 years ago

0.0.20221103

3 years ago

0.0.20230105

3 years ago

0.0.20230102

3 years ago

0.0.20221020

3 years ago

0.0.20221013

3 years ago

0.0.20220922

3 years ago

0.0.20220916

3 years ago

0.0.20220906

3 years ago

0.0.20220829

3 years ago

0.0.20220818

3 years ago

0.0.20220908

3 years ago

0.0.20220901

3 years ago

0.0.20220812

3 years ago

0.0.20220804

3 years ago