twilio.rest.ip_messaging.v1.service.channel package

Submodules

twilio.rest.ip_messaging.v1.service.channel.invite module

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

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.ip_messaging.v1.service.channel.invite.InviteContext(version, service_sid, channel_sid, sid)[source]

Bases: twilio.base.instance_context.InstanceContext

delete()[source]

Deletes the InviteInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the InviteInstance

Returns:The fetched InviteInstance
Return type:twilio.rest.ip_messaging.v1.service.channel.invite.InviteInstance
class twilio.rest.ip_messaging.v1.service.channel.invite.InviteInstance(version, payload, service_sid, channel_sid, sid=None)[source]

Bases: twilio.base.instance_resource.InstanceResource

account_sid
Returns:The account_sid
Return type:unicode
channel_sid
Returns:The channel_sid
Return type:unicode
created_by
Returns:The created_by
Return type:unicode
date_created
Returns:The date_created
Return type:datetime
date_updated
Returns:The date_updated
Return type:datetime
delete()[source]

Deletes the InviteInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the InviteInstance

Returns:The fetched InviteInstance
Return type:twilio.rest.ip_messaging.v1.service.channel.invite.InviteInstance
identity
Returns:The identity
Return type:unicode
role_sid
Returns:The role_sid
Return type:unicode
service_sid
Returns:The service_sid
Return type:unicode
sid
Returns:The sid
Return type:unicode
url
Returns:The url
Return type:unicode
class twilio.rest.ip_messaging.v1.service.channel.invite.InviteList(version, service_sid, channel_sid)[source]

Bases: twilio.base.list_resource.ListResource

create(identity, role_sid=<object object>)[source]

Create the InviteInstance

Parameters:
  • identity (unicode) – The identity
  • role_sid (unicode) – The role_sid
Returns:

The created InviteInstance

Return type:

twilio.rest.ip_messaging.v1.service.channel.invite.InviteInstance

get(sid)[source]

Constructs a InviteContext

Parameters:sid – The sid
Returns:twilio.rest.ip_messaging.v1.service.channel.invite.InviteContext
Return type:twilio.rest.ip_messaging.v1.service.channel.invite.InviteContext
get_page(target_url)[source]

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

Parameters:target_url (str) – API-generated URL for the requested results page
Returns:Page of InviteInstance
Return type:twilio.rest.ip_messaging.v1.service.channel.invite.InvitePage
list(identity=<object object>, limit=None, page_size=None)[source]

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

Parameters:
  • identity (list[unicode]) – The identity
  • 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.ip_messaging.v1.service.channel.invite.InviteInstance]

page(identity=<object object>, page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]

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

Parameters:
  • identity (list[unicode]) – The identity
  • 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 InviteInstance

Return type:

twilio.rest.ip_messaging.v1.service.channel.invite.InvitePage

stream(identity=<object object>, limit=None, page_size=None)[source]

Streams InviteInstance 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:
  • identity (list[unicode]) – The identity
  • 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.ip_messaging.v1.service.channel.invite.InviteInstance]

class twilio.rest.ip_messaging.v1.service.channel.invite.InvitePage(version, response, solution)[source]

Bases: twilio.base.page.Page

get_instance(payload)[source]

Build an instance of InviteInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.ip_messaging.v1.service.channel.invite.InviteInstance
Return type:twilio.rest.ip_messaging.v1.service.channel.invite.InviteInstance

twilio.rest.ip_messaging.v1.service.channel.member module

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

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.ip_messaging.v1.service.channel.member.MemberContext(version, service_sid, channel_sid, sid)[source]

Bases: twilio.base.instance_context.InstanceContext

delete()[source]

Deletes the MemberInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the MemberInstance

Returns:The fetched MemberInstance
Return type:twilio.rest.ip_messaging.v1.service.channel.member.MemberInstance
update(role_sid=<object object>, last_consumed_message_index=<object object>)[source]

Update the MemberInstance

Parameters:
  • role_sid (unicode) – The role_sid
  • last_consumed_message_index (unicode) – The last_consumed_message_index
Returns:

The updated MemberInstance

Return type:

twilio.rest.ip_messaging.v1.service.channel.member.MemberInstance

class twilio.rest.ip_messaging.v1.service.channel.member.MemberInstance(version, payload, service_sid, channel_sid, sid=None)[source]

Bases: twilio.base.instance_resource.InstanceResource

account_sid
Returns:The account_sid
Return type:unicode
channel_sid
Returns:The channel_sid
Return type:unicode
date_created
Returns:The date_created
Return type:datetime
date_updated
Returns:The date_updated
Return type:datetime
delete()[source]

Deletes the MemberInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the MemberInstance

Returns:The fetched MemberInstance
Return type:twilio.rest.ip_messaging.v1.service.channel.member.MemberInstance
identity
Returns:The identity
Return type:unicode
last_consumed_message_index
Returns:The last_consumed_message_index
Return type:unicode
last_consumption_timestamp
Returns:The last_consumption_timestamp
Return type:datetime
role_sid
Returns:The role_sid
Return type:unicode
service_sid
Returns:The service_sid
Return type:unicode
sid
Returns:The sid
Return type:unicode
update(role_sid=<object object>, last_consumed_message_index=<object object>)[source]

Update the MemberInstance

Parameters:
  • role_sid (unicode) – The role_sid
  • last_consumed_message_index (unicode) – The last_consumed_message_index
Returns:

The updated MemberInstance

Return type:

twilio.rest.ip_messaging.v1.service.channel.member.MemberInstance

url
Returns:The url
Return type:unicode
class twilio.rest.ip_messaging.v1.service.channel.member.MemberList(version, service_sid, channel_sid)[source]

Bases: twilio.base.list_resource.ListResource

create(identity, role_sid=<object object>)[source]

Create the MemberInstance

Parameters:
  • identity (unicode) – The identity
  • role_sid (unicode) – The role_sid
Returns:

The created MemberInstance

Return type:

twilio.rest.ip_messaging.v1.service.channel.member.MemberInstance

get(sid)[source]

Constructs a MemberContext

Parameters:sid – The sid
Returns:twilio.rest.ip_messaging.v1.service.channel.member.MemberContext
Return type:twilio.rest.ip_messaging.v1.service.channel.member.MemberContext
get_page(target_url)[source]

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

Parameters:target_url (str) – API-generated URL for the requested results page
Returns:Page of MemberInstance
Return type:twilio.rest.ip_messaging.v1.service.channel.member.MemberPage
list(identity=<object object>, limit=None, page_size=None)[source]

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

Parameters:
  • identity (list[unicode]) – The identity
  • 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.ip_messaging.v1.service.channel.member.MemberInstance]

page(identity=<object object>, page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]

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

Parameters:
  • identity (list[unicode]) – The identity
  • 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 MemberInstance

Return type:

twilio.rest.ip_messaging.v1.service.channel.member.MemberPage

stream(identity=<object object>, limit=None, page_size=None)[source]

Streams MemberInstance 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:
  • identity (list[unicode]) – The identity
  • 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.ip_messaging.v1.service.channel.member.MemberInstance]

class twilio.rest.ip_messaging.v1.service.channel.member.MemberPage(version, response, solution)[source]

Bases: twilio.base.page.Page

get_instance(payload)[source]

Build an instance of MemberInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.ip_messaging.v1.service.channel.member.MemberInstance
Return type:twilio.rest.ip_messaging.v1.service.channel.member.MemberInstance

twilio.rest.ip_messaging.v1.service.channel.message module

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

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.ip_messaging.v1.service.channel.message.MessageContext(version, service_sid, channel_sid, sid)[source]

Bases: twilio.base.instance_context.InstanceContext

delete()[source]

Deletes the MessageInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the MessageInstance

Returns:The fetched MessageInstance
Return type:twilio.rest.ip_messaging.v1.service.channel.message.MessageInstance
update(body=<object object>, attributes=<object object>)[source]

Update the MessageInstance

Parameters:
  • body (unicode) – The body
  • attributes (unicode) – The attributes
Returns:

The updated MessageInstance

Return type:

twilio.rest.ip_messaging.v1.service.channel.message.MessageInstance

class twilio.rest.ip_messaging.v1.service.channel.message.MessageInstance(version, payload, service_sid, channel_sid, sid=None)[source]

Bases: twilio.base.instance_resource.InstanceResource

class OrderType[source]

Bases: object

ASC = 'asc'
DESC = 'desc'
account_sid
Returns:The account_sid
Return type:unicode
attributes
Returns:The attributes
Return type:unicode
body
Returns:The body
Return type:unicode
channel_sid
Returns:The channel_sid
Return type:unicode
date_created
Returns:The date_created
Return type:datetime
date_updated
Returns:The date_updated
Return type:datetime
delete()[source]

Deletes the MessageInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the MessageInstance

Returns:The fetched MessageInstance
Return type:twilio.rest.ip_messaging.v1.service.channel.message.MessageInstance
from_
Returns:The from
Return type:unicode
index
Returns:The index
Return type:unicode
service_sid
Returns:The service_sid
Return type:unicode
sid
Returns:The sid
Return type:unicode
to
Returns:The to
Return type:unicode
update(body=<object object>, attributes=<object object>)[source]

Update the MessageInstance

Parameters:
  • body (unicode) – The body
  • attributes (unicode) – The attributes
Returns:

The updated MessageInstance

Return type:

twilio.rest.ip_messaging.v1.service.channel.message.MessageInstance

url
Returns:The url
Return type:unicode
was_edited
Returns:The was_edited
Return type:bool
class twilio.rest.ip_messaging.v1.service.channel.message.MessageList(version, service_sid, channel_sid)[source]

Bases: twilio.base.list_resource.ListResource

create(body, from_=<object object>, attributes=<object object>)[source]

Create the MessageInstance

Parameters:
  • body (unicode) – The body
  • from (unicode) – The from
  • attributes (unicode) – The attributes
Returns:

The created MessageInstance

Return type:

twilio.rest.ip_messaging.v1.service.channel.message.MessageInstance

get(sid)[source]

Constructs a MessageContext

Parameters:sid – The sid
Returns:twilio.rest.ip_messaging.v1.service.channel.message.MessageContext
Return type:twilio.rest.ip_messaging.v1.service.channel.message.MessageContext
get_page(target_url)[source]

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

Parameters:target_url (str) – API-generated URL for the requested results page
Returns:Page of MessageInstance
Return type:twilio.rest.ip_messaging.v1.service.channel.message.MessagePage
list(order=<object object>, limit=None, page_size=None)[source]

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

Parameters:
  • order (MessageInstance.OrderType) – The order
  • 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.ip_messaging.v1.service.channel.message.MessageInstance]

page(order=<object object>, page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]

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

Parameters:
  • order (MessageInstance.OrderType) – The order
  • 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 MessageInstance

Return type:

twilio.rest.ip_messaging.v1.service.channel.message.MessagePage

stream(order=<object object>, limit=None, page_size=None)[source]

Streams MessageInstance 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:
  • order (MessageInstance.OrderType) – The order
  • 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.ip_messaging.v1.service.channel.message.MessageInstance]

class twilio.rest.ip_messaging.v1.service.channel.message.MessagePage(version, response, solution)[source]

Bases: twilio.base.page.Page

get_instance(payload)[source]

Build an instance of MessageInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.ip_messaging.v1.service.channel.message.MessageInstance
Return type:twilio.rest.ip_messaging.v1.service.channel.message.MessageInstance

Module contents

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

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.ip_messaging.v1.service.channel.ChannelContext(version, service_sid, sid)[source]

Bases: twilio.base.instance_context.InstanceContext

delete()[source]

Deletes the ChannelInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the ChannelInstance

Returns:The fetched ChannelInstance
Return type:twilio.rest.ip_messaging.v1.service.channel.ChannelInstance
invites

Access the invites

Returns:twilio.rest.ip_messaging.v1.service.channel.invite.InviteList
Return type:twilio.rest.ip_messaging.v1.service.channel.invite.InviteList
members

Access the members

Returns:twilio.rest.ip_messaging.v1.service.channel.member.MemberList
Return type:twilio.rest.ip_messaging.v1.service.channel.member.MemberList
messages

Access the messages

Returns:twilio.rest.ip_messaging.v1.service.channel.message.MessageList
Return type:twilio.rest.ip_messaging.v1.service.channel.message.MessageList
update(friendly_name=<object object>, unique_name=<object object>, attributes=<object object>)[source]

Update the ChannelInstance

Parameters:
  • friendly_name (unicode) – The friendly_name
  • unique_name (unicode) – The unique_name
  • attributes (unicode) – The attributes
Returns:

The updated ChannelInstance

Return type:

twilio.rest.ip_messaging.v1.service.channel.ChannelInstance

class twilio.rest.ip_messaging.v1.service.channel.ChannelInstance(version, payload, service_sid, sid=None)[source]

Bases: twilio.base.instance_resource.InstanceResource

class ChannelType[source]

Bases: object

PRIVATE = 'private'
PUBLIC = 'public'
account_sid
Returns:The account_sid
Return type:unicode
attributes
Returns:The attributes
Return type:unicode
created_by
Returns:The created_by
Return type:unicode
date_created
Returns:The date_created
Return type:datetime
date_updated
Returns:The date_updated
Return type:datetime
delete()[source]

Deletes the ChannelInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the ChannelInstance

Returns:The fetched ChannelInstance
Return type:twilio.rest.ip_messaging.v1.service.channel.ChannelInstance
friendly_name
Returns:The friendly_name
Return type:unicode
invites

Access the invites

Returns:twilio.rest.ip_messaging.v1.service.channel.invite.InviteList
Return type:twilio.rest.ip_messaging.v1.service.channel.invite.InviteList
Returns:The links
Return type:unicode
members

Access the members

Returns:twilio.rest.ip_messaging.v1.service.channel.member.MemberList
Return type:twilio.rest.ip_messaging.v1.service.channel.member.MemberList
members_count
Returns:The members_count
Return type:unicode
messages

Access the messages

Returns:twilio.rest.ip_messaging.v1.service.channel.message.MessageList
Return type:twilio.rest.ip_messaging.v1.service.channel.message.MessageList
messages_count
Returns:The messages_count
Return type:unicode
service_sid
Returns:The service_sid
Return type:unicode
sid
Returns:The sid
Return type:unicode
type
Returns:The type
Return type:ChannelInstance.ChannelType
unique_name
Returns:The unique_name
Return type:unicode
update(friendly_name=<object object>, unique_name=<object object>, attributes=<object object>)[source]

Update the ChannelInstance

Parameters:
  • friendly_name (unicode) – The friendly_name
  • unique_name (unicode) – The unique_name
  • attributes (unicode) – The attributes
Returns:

The updated ChannelInstance

Return type:

twilio.rest.ip_messaging.v1.service.channel.ChannelInstance

url
Returns:The url
Return type:unicode
class twilio.rest.ip_messaging.v1.service.channel.ChannelList(version, service_sid)[source]

Bases: twilio.base.list_resource.ListResource

create(friendly_name=<object object>, unique_name=<object object>, attributes=<object object>, type=<object object>)[source]

Create the ChannelInstance

Parameters:
  • friendly_name (unicode) – The friendly_name
  • unique_name (unicode) – The unique_name
  • attributes (unicode) – The attributes
  • type (ChannelInstance.ChannelType) – The type
Returns:

The created ChannelInstance

Return type:

twilio.rest.ip_messaging.v1.service.channel.ChannelInstance

get(sid)[source]

Constructs a ChannelContext

Parameters:sid – The sid
Returns:twilio.rest.ip_messaging.v1.service.channel.ChannelContext
Return type:twilio.rest.ip_messaging.v1.service.channel.ChannelContext
get_page(target_url)[source]

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

Parameters:target_url (str) – API-generated URL for the requested results page
Returns:Page of ChannelInstance
Return type:twilio.rest.ip_messaging.v1.service.channel.ChannelPage
list(type=<object object>, limit=None, page_size=None)[source]

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

Parameters:
  • type (list[ChannelInstance.ChannelType]) – The type
  • 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.ip_messaging.v1.service.channel.ChannelInstance]

page(type=<object object>, page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]

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

Parameters:
  • type (list[ChannelInstance.ChannelType]) – The type
  • 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 ChannelInstance

Return type:

twilio.rest.ip_messaging.v1.service.channel.ChannelPage

stream(type=<object object>, limit=None, page_size=None)[source]

Streams ChannelInstance 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:
  • type (list[ChannelInstance.ChannelType]) – The type
  • 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.ip_messaging.v1.service.channel.ChannelInstance]

class twilio.rest.ip_messaging.v1.service.channel.ChannelPage(version, response, solution)[source]

Bases: twilio.base.page.Page

get_instance(payload)[source]

Build an instance of ChannelInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.ip_messaging.v1.service.channel.ChannelInstance
Return type:twilio.rest.ip_messaging.v1.service.channel.ChannelInstance