new RecordingInstance(version, payload, accountSid, sid)
Initialize the RecordingContext
Parameters:
Name | Type | Description |
---|---|---|
version |
V2010 | Version of the resource |
payload |
RecordingPayload | The instance payload |
accountSid |
sid | The SID of the Account that created the resource |
sid |
sid | The unique string that identifies the resource |
Properties:
Name | Type | Description |
---|---|---|
accountSid |
string | The SID of the Account that created the resource |
apiVersion |
string | The API version used during the recording. |
callSid |
string | The SID of the Call the resource is associated with |
conferenceSid |
string | The unique ID for the conference associated with the recording. |
dateCreated |
Date | The RFC 2822 date and time in GMT that the resource was created |
dateUpdated |
Date | The RFC 2822 date and time in GMT that the resource was last updated |
startTime |
Date | The start time of the recording, given in RFC 2822 format |
duration |
string | The length of the recording in seconds. |
sid |
string | The unique string that identifies the resource |
price |
string | The one-time cost of creating the recording. |
priceUnit |
string | The currency used in the price property. |
status |
recording.status | The status of the recording. |
channels |
number | The number of channels in the final recording file as an integer. |
source |
recording.source | How the recording was created |
errorCode |
number | More information about why the recording is missing, if status is `absent`. |
uri |
string | The URI of the resource, relative to `https://api.twilio.com` |
encryptionDetails |
object | How to decrypt the recording. |
subresourceUris |
string | A list of related resources identified by their relative URIs |
Methods
addOnResults() → {Twilio.Api.V2010.AccountContext.RecordingContext.AddOnResultList}
Access the addOnResults
Returns:
fetch(callbackopt) → {Promise}
fetch a RecordingInstance
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
function |
<optional> |
Callback to handle processed record |
Returns:
Resolves to processed RecordingInstance
- Type
- Promise
remove(callbackopt) → {Promise}
remove a RecordingInstance
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
function |
<optional> |
Callback to handle processed record |
Returns:
Resolves to processed RecordingInstance
- Type
- Promise
toJSON()
Provide a user-friendly representation
Returns:
Object
transcriptions() → {Twilio.Api.V2010.AccountContext.RecordingContext.TranscriptionList}
Access the transcriptions