1.0.20220804 • Published 2 years ago

@maxim_mazurok/gapi.client.recommendationengine v1.0.20220804

Weekly downloads
70
License
MIT
Repository
github
Last release
2 years 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('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:

1.0.20220615

2 years ago

1.0.20220622

2 years ago

1.0.20220707

2 years ago

1.0.20220623

2 years ago

1.0.20220714

2 years ago

1.0.20220720

2 years ago

1.0.20220728

2 years ago

1.0.20220804

2 years ago

1.0.20220609

2 years ago

1.0.20220509

2 years ago

1.0.20220428

2 years ago

1.0.20220513

2 years ago

1.0.20220523

2 years ago

1.0.20220602

2 years ago

1.0.20220531

2 years ago

1.0.20220317

2 years ago

1.0.20220407

2 years ago

1.0.20220303

2 years ago

1.0.20220224

2 years ago

1.0.20220310

2 years ago

1.0.20220119

2 years ago

1.0.20220105

2 years ago

1.0.20220210

2 years ago

1.0.20211111

2 years ago

1.0.20211211

2 years ago

1.0.20211104

2 years ago

1.0.20211202

2 years ago

1.0.20211027

3 years ago

1.0.20211021

3 years ago

1.0.20211014

3 years ago

1.0.20210929

3 years ago

1.0.20210928

3 years ago

1.0.20210916

3 years ago

1.0.20210909

3 years ago

1.0.20210816

3 years ago

1.0.20210731

3 years ago

1.0.20210702

3 years ago

1.0.20210618

3 years ago

1.0.20210528

3 years ago

1.0.20210521

3 years ago

1.0.20210514

3 years ago

1.0.20210513

3 years ago

1.0.20210512

3 years ago

1.0.20210426

3 years ago

1.0.20210416

3 years ago

1.0.20210409

3 years ago

1.0.20210326

3 years ago

1.0.20210319

3 years ago

1.0.20210310

3 years ago

1.0.20210308

3 years ago

1.0.20210303

3 years ago

1.0.20210226

3 years ago

1.0.20210223

3 years ago

1.0.20210205

3 years ago

1.0.20210202

3 years ago

1.0.20210125

3 years ago

1.0.20210115

3 years ago

1.0.20210108

3 years ago

1.0.20201212

3 years ago

1.0.20201203

3 years ago

1.0.20201112

3 years ago

1.0.20201107

3 years ago