Node Celsius SDK Http Client
Parameters:
Name | Type | Description |
---|---|---|
config |
object | contains configuration data |
- Source:
Returns:
instance to class object
- Type
- object
Methods
(inner) get(path, queryParams, userSecret) → {object}
Sends a HTTP GET request to the api.
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:
Api response
- Type
- object
(inner) post(path, formFields, files, userSecret) → {object}
Sends a HTTP POST request to the api.
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:
Api response
- Type
- object