Class: CallContext

Twilio.Insights.V1.CallContext(version, sid)

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:
Name Type Description
events Twilio.Insights.V1.CallContext.EventList events resource
metrics Twilio.Insights.V1.CallContext.MetricList metrics resource
summary Twilio.Insights.V1.CallContext.CallSummaryList summary resource
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

summary(sid) → {Twilio.Insights.V1.CallContext.CallSummaryContext}

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