Class: ApiClient

ApiClient(databaseId, secretToken, alwaysUseHttps, options)

Client for sending requests to Recombee and getting replies

Constructor

new ApiClient(databaseId, secretToken, alwaysUseHttps, options)

Construct the client
Parameters:
Name Type Description
databaseId string ID of your database
secretToken string Corresponding secret token
alwaysUseHttps boolean If true, all requests are sent using HTTPS (default: false)
options Object Other custom options
Source:

Methods

send(request, callback)

Send the request to Recombee
Parameters:
Name Type Description
request Request Request to be sent
callback Object Optional callback (send returns Promise if omitted)
Source: