new Call(baseUrl, id, secret)
Create a Call object
Parameters:
Name | Type | Description |
---|---|---|
baseUrl |
string | |
id |
string | |
secret |
string | object |
- Source:
Methods
chunk(url, data, params) → {Promise}
Make PUT request to Chino APIs sending data as octet stream
Parameters:
Name | Type | Description |
---|---|---|
url |
string | |
data |
object | |
params |
object |
- Source:
Returns:
- Type
- Promise
del(url, params) → {Promise}
Make DELETE request to Chino APIs
Parameters:
Name | Type | Description |
---|---|---|
url |
string | |
params |
object |
- Source:
Returns:
- Type
- Promise
get(url, params) → {Promise}
Make GET request to Chino APIs
Parameters:
Name | Type | Description |
---|---|---|
url |
string | |
params |
object |
- Source:
Returns:
- Type
- Promise
getBlob(url, params) → {request}
Make GET request to Chino APIs to retrieve blob data
Parameters:
Name | Type | Description |
---|---|---|
url |
string | |
params |
object |
- Source:
Returns:
- Type
- request
patch(url, data) → {Promise}
Make PATCH request to Chino APIs
Parameters:
Name | Type | Description |
---|---|---|
url |
string | |
data |
object |
- Source:
Returns:
- Type
- Promise
post(url, data, acceptType) → {Promise}
Make POST request to Chino APIs
Parameters:
Name | Type | Default | Description |
---|---|---|---|
url |
string | ||
data |
object | ||
acceptType |
string | null | null |
- Source:
Returns:
- Type
- Promise
put(url, data, params) → {Promise}
Make PUT request to Chino APIs
Parameters:
Name | Type | Description |
---|---|---|
url |
string | |
data |
object | |
params |
object |
- Source:
Returns:
- Type
- Promise