twilio.rest.insights.v1 package

Submodules

twilio.rest.insights.v1.call_summaries module

This code was generated by / _ _ _| _ _

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.insights.v1.call_summaries.CallSummariesInstance(version, payload)[source]

Bases: twilio.base.instance_resource.InstanceResource

class CallDirection[source]

Bases: object

INBOUND = 'inbound'
OUTBOUND_API = 'outbound_api'
OUTBOUND_DIAL = 'outbound_dial'
TRUNKING_ORIGINATING = 'trunking_originating'
TRUNKING_TERMINATING = 'trunking_terminating'
class CallState[source]

Bases: object

ANSWERED = 'answered'
BUSY = 'busy'
CANCELED = 'canceled'
COMPLETED = 'completed'
FAIL = 'fail'
NOANSWER = 'noanswer'
RINGING = 'ringing'
UNDIALED = 'undialed'
class CallType[source]

Bases: object

CARRIER = 'carrier'
CLIENT = 'client'
SIP = 'sip'
TRUNKING = 'trunking'
class ProcessingState[source]

Bases: object

COMPLETE = 'complete'
PARTIAL = 'partial'
class ProcessingStateRequest[source]

Bases: object

ALL = 'all'
COMPLETED = 'completed'
PARTIAL = 'partial'
STARTED = 'started'
class SortBy[source]

Bases: object

END_TIME = 'end_time'
START_TIME = 'start_time'
account_sid
Returns:The account_sid
Return type:unicode
attributes
Returns:The attributes
Return type:dict
call_sid
Returns:The call_sid
Return type:unicode
call_state
Returns:The call_state
Return type:CallSummariesInstance.CallState
call_type
Returns:The call_type
Return type:CallSummariesInstance.CallType
carrier_edge
Returns:The carrier_edge
Return type:dict
client_edge
Returns:The client_edge
Return type:dict
connect_duration
Returns:The connect_duration
Return type:unicode
created_time
Returns:The created_time
Return type:datetime
duration
Returns:The duration
Return type:unicode
end_time
Returns:The end_time
Return type:datetime
from_
Returns:The from
Return type:dict
processing_state
Returns:The processing_state
Return type:CallSummariesInstance.ProcessingState
properties
Returns:The properties
Return type:dict
sdk_edge
Returns:The sdk_edge
Return type:dict
sip_edge
Returns:The sip_edge
Return type:dict
start_time
Returns:The start_time
Return type:datetime
tags
Returns:The tags
Return type:list[unicode]
to
Returns:The to
Return type:dict
trust
Returns:The trust
Return type:dict
url
Returns:The url
Return type:unicode
class twilio.rest.insights.v1.call_summaries.CallSummariesList(version)[source]

Bases: twilio.base.list_resource.ListResource

get_page(target_url)[source]

Retrieve a specific page of CallSummariesInstance records from the API. Request is executed immediately

Parameters:target_url (str) – API-generated URL for the requested results page
Returns:Page of CallSummariesInstance
Return type:twilio.rest.insights.v1.call_summaries.CallSummariesPage
list(from_=<object object>, to=<object object>, from_carrier=<object object>, to_carrier=<object object>, from_country_code=<object object>, to_country_code=<object object>, branded=<object object>, verified_caller=<object object>, has_tag=<object object>, start_time=<object object>, end_time=<object object>, call_type=<object object>, call_state=<object object>, direction=<object object>, processing_state=<object object>, sort_by=<object object>, subaccount=<object object>, abnormal_session=<object object>, limit=None, page_size=None)[source]

Lists CallSummariesInstance records from the API as a list. Unlike stream(), this operation is eager and will load limit records into memory before returning.

Parameters:
  • from (unicode) – The from
  • to (unicode) – The to
  • from_carrier (unicode) – The from_carrier
  • to_carrier (unicode) – The to_carrier
  • from_country_code (unicode) – The from_country_code
  • to_country_code (unicode) – The to_country_code
  • branded (bool) – The branded
  • verified_caller (bool) – The verified_caller
  • has_tag (bool) – The has_tag
  • start_time (unicode) – The start_time
  • end_time (unicode) – The end_time
  • call_type (unicode) – The call_type
  • call_state (unicode) – The call_state
  • direction (unicode) – The direction
  • processing_state (CallSummariesInstance.ProcessingStateRequest) – The processing_state
  • sort_by (CallSummariesInstance.SortBy) – The sort_by
  • subaccount (unicode) – The subaccount
  • abnormal_session (bool) – The abnormal_session
  • limit (int) – Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit
  • page_size (int) – Number of records to fetch per request, when not set will use the default value of 50 records. If no page_size is defined but a limit is defined, list() will attempt to read the limit with the most efficient page size, i.e. min(limit, 1000)
Returns:

Generator that will yield up to limit results

Return type:

list[twilio.rest.insights.v1.call_summaries.CallSummariesInstance]

page(from_=<object object>, to=<object object>, from_carrier=<object object>, to_carrier=<object object>, from_country_code=<object object>, to_country_code=<object object>, branded=<object object>, verified_caller=<object object>, has_tag=<object object>, start_time=<object object>, end_time=<object object>, call_type=<object object>, call_state=<object object>, direction=<object object>, processing_state=<object object>, sort_by=<object object>, subaccount=<object object>, abnormal_session=<object object>, page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]

Retrieve a single page of CallSummariesInstance records from the API. Request is executed immediately

Parameters:
  • from (unicode) – The from
  • to (unicode) – The to
  • from_carrier (unicode) – The from_carrier
  • to_carrier (unicode) – The to_carrier
  • from_country_code (unicode) – The from_country_code
  • to_country_code (unicode) – The to_country_code
  • branded (bool) – The branded
  • verified_caller (bool) – The verified_caller
  • has_tag (bool) – The has_tag
  • start_time (unicode) – The start_time
  • end_time (unicode) – The end_time
  • call_type (unicode) – The call_type
  • call_state (unicode) – The call_state
  • direction (unicode) – The direction
  • processing_state (CallSummariesInstance.ProcessingStateRequest) – The processing_state
  • sort_by (CallSummariesInstance.SortBy) – The sort_by
  • subaccount (unicode) – The subaccount
  • abnormal_session (bool) – The abnormal_session
  • page_token (str) – PageToken provided by the API
  • page_number (int) – Page Number, this value is simply for client state
  • page_size (int) – Number of records to return, defaults to 50
Returns:

Page of CallSummariesInstance

Return type:

twilio.rest.insights.v1.call_summaries.CallSummariesPage

stream(from_=<object object>, to=<object object>, from_carrier=<object object>, to_carrier=<object object>, from_country_code=<object object>, to_country_code=<object object>, branded=<object object>, verified_caller=<object object>, has_tag=<object object>, start_time=<object object>, end_time=<object object>, call_type=<object object>, call_state=<object object>, direction=<object object>, processing_state=<object object>, sort_by=<object object>, subaccount=<object object>, abnormal_session=<object object>, limit=None, page_size=None)[source]

Streams CallSummariesInstance records from the API as a generator stream. This operation lazily loads records as efficiently as possible until the limit is reached. The results are returned as a generator, so this operation is memory efficient.

Parameters:
  • from (unicode) – The from
  • to (unicode) – The to
  • from_carrier (unicode) – The from_carrier
  • to_carrier (unicode) – The to_carrier
  • from_country_code (unicode) – The from_country_code
  • to_country_code (unicode) – The to_country_code
  • branded (bool) – The branded
  • verified_caller (bool) – The verified_caller
  • has_tag (bool) – The has_tag
  • start_time (unicode) – The start_time
  • end_time (unicode) – The end_time
  • call_type (unicode) – The call_type
  • call_state (unicode) – The call_state
  • direction (unicode) – The direction
  • processing_state (CallSummariesInstance.ProcessingStateRequest) – The processing_state
  • sort_by (CallSummariesInstance.SortBy) – The sort_by
  • subaccount (unicode) – The subaccount
  • abnormal_session (bool) – The abnormal_session
  • limit (int) – Upper limit for the number of records to return. stream() guarantees to never return more than limit. Default is no limit
  • page_size (int) – Number of records to fetch per request, when not set will use the default value of 50 records. If no page_size is defined but a limit is defined, stream() will attempt to read the limit with the most efficient page size, i.e. min(limit, 1000)
Returns:

Generator that will yield up to limit results

Return type:

list[twilio.rest.insights.v1.call_summaries.CallSummariesInstance]

class twilio.rest.insights.v1.call_summaries.CallSummariesPage(version, response, solution)[source]

Bases: twilio.base.page.Page

get_instance(payload)[source]

Build an instance of CallSummariesInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.insights.v1.call_summaries.CallSummariesInstance
Return type:twilio.rest.insights.v1.call_summaries.CallSummariesInstance

Module contents

This code was generated by / _ _ _| _ _

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.insights.v1.V1(domain)[source]

Bases: twilio.base.version.Version

call_summaries
Return type:twilio.rest.insights.v1.call_summaries.CallSummariesList
calls
Return type:twilio.rest.insights.v1.call.CallList
rooms
Return type:twilio.rest.insights.v1.room.RoomList