new SampleContext(version, assistantSid, taskSid, sid)
Initialize the SampleContext
PLEASE NOTE that this class contains preview products that are subject to
change. Use them with caution. If you currently do not have developer preview
access, please contact help@twilio.com.
Parameters:
Name | Type | Description |
---|---|---|
version |
Understand | Version of the resource |
assistantSid |
sid_like | The unique ID of the Assistant. |
taskSid |
sid_like | The unique ID of the Task associated with this Sample. |
sid |
sid | A 34 character string that uniquely identifies this resource. |
Methods
fetch(callbackopt) → {Promise}
fetch a SampleInstance
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
function |
<optional> |
Callback to handle processed record |
Returns:
Resolves to processed SampleInstance
- Type
- Promise
remove(callbackopt) → {Promise}
remove a SampleInstance
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
function |
<optional> |
Callback to handle processed record |
Returns:
Resolves to processed SampleInstance
- Type
- Promise
toJSON()
Provide a user-friendly representation
Returns:
Object
update(optsopt, callbackopt) → {Promise}
update a SampleInstance
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object |
<optional> |
Options for request
Properties
|
||||||||||||||||
callback |
function |
<optional> |
Callback to handle processed record |
Returns:
Resolves to processed SampleInstance
- Type
- Promise