Class: MemberContext

Twilio.IpMessaging.V1.ServiceContext.ChannelContext.MemberContext(version, serviceSid, channelSid, sid)

new MemberContext(version, serviceSid, channelSid, sid)

Initialize the MemberContext
Parameters:
Name Type Description
version V1 Version of the resource
serviceSid sid The service_sid
channelSid sid_like The channel_sid
sid sid The sid
Source:

Methods

fetch(callbackopt) → {Promise}

fetch a MemberInstance
Parameters:
Name Type Attributes Description
callback function <optional>
Callback to handle processed record
Source:
Returns:
Resolves to processed MemberInstance
Type
Promise

remove(callbackopt) → {Promise}

remove a MemberInstance
Parameters:
Name Type Attributes Description
callback function <optional>
Callback to handle processed record
Source:
Returns:
Resolves to processed MemberInstance
Type
Promise

toJSON()

Provide a user-friendly representation
Source:
Returns:
Object

update(optsopt, callbackopt) → {Promise}

update a MemberInstance
Parameters:
Name Type Attributes Description
opts object <optional>
Options for request
Properties
Name Type Attributes Description
roleSid string <optional>
The role_sid
lastConsumedMessageIndex number <optional>
The last_consumed_message_index
callback function <optional>
Callback to handle processed record
Source:
Returns:
Resolves to processed MemberInstance
Type
Promise