Class: WebChannelContext

Twilio.FlexApi.V1.WebChannelContext(version, sid)

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
Name Type Attributes Description
chatStatus web_channel.chat_status <optional>
The chat status
postEngagementData string <optional>
The post-engagement data
callback function <optional>
Callback to handle processed record
Source:
Returns:
Resolves to processed WebChannelInstance
Type
Promise