new ChinoAPIApplication(baseUrl, customerId, customerKey)
Create a caller for Applications Chino APIs
Parameters:
Name | Type | Default | Description |
---|---|---|---|
baseUrl |
string | The url endpoint for APIs |
|
customerId |
string | The Chino customer id or bearer token |
|
customerKey |
string | null | null | The Chino customer key or null (not provided) |
- Source:
Methods
create(data) → {Promise.<objects.Application, objects.ChinoException>}
Create a new application
Parameters:
Name | Type | Description |
---|---|---|
data |
object |
- Source:
Returns:
A promise that return a Application object if resolved, otherwise throw an ChinoException object if rejected or was not retrieved a success status
- Type
- Promise.<objects.Application, objects.ChinoException>
delete(applicationId) → {Promise.<objects.Success, objects.ChinoException>}
Delete application selected by its id
Parameters:
Name | Type | Description |
---|---|---|
applicationId |
string |
- Source:
Returns:
A promise that return a Success object if resolved, otherwise throw an ChinoException object if rejected or was not retrieved a success status
- Type
- Promise.<objects.Success, objects.ChinoException>
details(applicationId) → {Promise.<objects.Application, objects.ChinoException>}
Return information about application selected by its id
Parameters:
Name | Type | Description |
---|---|---|
applicationId |
string |
- Source:
Returns:
A promise that return a Application object if resolved, otherwise throw an ChinoException object if rejected or was not retrieved a success status
- Type
- Promise.<objects.Application, objects.ChinoException>
list(offset, limit) → {Promise.<Object, objects.ChinoException>}
Return the list of existing applications
Parameters:
Name | Type | Default | Description |
---|---|---|---|
offset |
int | 0 | |
limit |
int | 10 |
- Source:
Returns:
A promise that return a list of Application object if resolved, otherwise throw an ChinoException object if rejected or was not retrieved a success status
- Type
- Promise.<Object, objects.ChinoException>
update(applicationId, data) → {Promise.<objects.Application, objects.ChinoException>}
Update information about application selected by its id with data as new application information
Parameters:
Name | Type | Description |
---|---|---|
applicationId |
string | |
data |
object |
- Source:
Returns:
A promise that return a Application object if resolved, otherwise throw an ChinoException object if rejected or was not retrieved a success status
- Type
- Promise.<objects.Application, objects.ChinoException>