new CallContext(version, sid)
Initialize the CallContext
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 |
V1
|
Version of the resource |
sid |
sid
|
The sid |
Properties:
- Source:
Classes
- CallSummaryContext
- CallSummaryInstance
- CallSummaryList
- CallSummaryPage
- EventInstance
- EventList
- EventPage
- MetricInstance
- MetricList
- MetricPage
Methods
events(sid) → {Twilio.Insights.V1.CallContext.EventContext}
Parameters:
Name |
Type |
Description |
sid |
string
|
sid of instance |
- Source:
Returns:
-
Type
-
Twilio.Insights.V1.CallContext.EventContext
fetch(callbackopt) → {Promise}
fetch a CallInstance
Parameters:
Name |
Type |
Attributes |
Description |
callback |
function
|
<optional>
|
Callback to handle processed record |
- Source:
Returns:
Resolves to processed CallInstance
-
Type
-
Promise
metrics(sid) → {Twilio.Insights.V1.CallContext.MetricContext}
Parameters:
Name |
Type |
Description |
sid |
string
|
sid of instance |
- Source:
Returns:
-
Type
-
Twilio.Insights.V1.CallContext.MetricContext
Parameters:
Name |
Type |
Description |
sid |
string
|
sid of instance |
- Source:
Returns:
-
Type
-
Twilio.Insights.V1.CallContext.CallSummaryContext
toJSON()
Provide a user-friendly representation
- Source:
Returns:
Object