new ConfigurationInstance(version, payload)
Initialize the ConfigurationContext
Parameters:
Name | Type | Description |
---|---|---|
version |
V1 | Version of the resource |
payload |
ConfigurationPayload | The instance payload |
Properties:
Name | Type | Description |
---|---|---|
accountSid |
string | The SID of the Account responsible for this configuration. |
defaultChatServiceSid |
string | The SID of the default Conversation Service that every new conversation is associated with. |
defaultMessagingServiceSid |
string | The SID of the default Messaging Service that every new conversation is associated with. |
defaultInactiveTimer |
string | Default ISO8601 duration when conversation will be switched to `inactive` state. |
defaultClosedTimer |
string | Default ISO8601 duration when conversation will be switched to `closed` state. |
url |
string | An absolute URL for this global configuration. |
links |
string | Absolute URLs to access the webhook and default service configurations. |
Methods
fetch(callbackopt) → {Promise}
fetch a ConfigurationInstance
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
function |
<optional> |
Callback to handle processed record |
Returns:
Resolves to processed ConfigurationInstance
- Type
- Promise
toJSON()
Provide a user-friendly representation
Returns:
Object
update(optsopt, callbackopt) → {Promise}
update a ConfigurationInstance
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object |
<optional> |
Options for request
Properties
|
||||||||||||||||||||
callback |
function |
<optional> |
Callback to handle processed record |
Returns:
Resolves to processed ConfigurationInstance
- Type
- Promise