Module: celsius-js-sdk/http-client

Celsius js SDK Http Client

Source:

Methods

(inner) get(path, queryParams, userSecret) → {object}

Sends a HTTP GET request.

Parameters:
Name Type Description
path string

Endpoint path

queryParams object

Parameters to be sent via query string

userSecret string

User's secret token or api-key

Source:
Returns:

Response

Type
object

(inner) HttpClient(config) → {HttpClient}

Creates and configures HttpClient.

Parameters:
Name Type Description
config object

contains configuration data

Source:
Returns:
Type
HttpClient

(inner) post(path, formFields, files, userSecret) → {Promise}

Sends a HTTP POST request.

Parameters:
Name Type Description
path string

Endpoint path

formFields object

Form fields to be sent

files object

Files to be sent

userSecret string

User's secret token or api-key

Source:
Returns:

Response

Type
Promise