new WebChannelContext(version, sid)
Initialize the WebChannelContext
Parameters:
Name | Type | Description |
---|---|---|
version |
V1 | Version of the resource |
sid |
sid | The SID of the WebChannel resource to fetch |
- Source:
Methods
fetch(callbackopt) → {Promise}
fetch a WebChannelInstance
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
function |
<optional> |
Callback to handle processed record |
- Source:
Returns:
Resolves to processed WebChannelInstance
- Type
- Promise
remove(callbackopt) → {Promise}
remove a WebChannelInstance
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
function |
<optional> |
Callback to handle processed record |
- Source:
Returns:
Resolves to processed WebChannelInstance
- Type
- Promise
toJSON()
Provide a user-friendly representation
- Source:
Returns:
Object
update(optsopt, callbackopt) → {Promise}
update a WebChannelInstance
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object |
<optional> |
Options for request
Properties
|
||||||||||||
callback |
function |
<optional> |
Callback to handle processed record |
- Source:
Returns:
Resolves to processed WebChannelInstance
- Type
- Promise