twilio.rest.accounts.v1 package

Submodules

twilio.rest.accounts.v1.auth_token_promotion module

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

(_)/(_)(_|/| |(/_ v1.0.0 / /

System Message: WARNING/2 (/twilio/repos/twilio-python/twilio/rest/accounts/v1/auth_token_promotion.py:docstring of twilio.rest.accounts.v1.auth_token_promotion, line 3); backlink

Inline substitution_reference start-string without end-string.
class twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionContext(version)[source]

Bases: twilio.base.instance_context.InstanceContext

update()[source]

Update the AuthTokenPromotionInstance

Returns:The updated AuthTokenPromotionInstance
Return type:twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionInstance
class twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionInstance(version, payload)[source]

Bases: twilio.base.instance_resource.InstanceResource

account_sid
Returns:The SID of the Account that the secondary Auth Token was created for
Return type:unicode
auth_token
Returns:The promoted Auth Token
Return type:unicode
date_created
Returns:The ISO 8601 formatted date and time in UTC when the resource was created
Return type:datetime
date_updated
Returns:The ISO 8601 formatted date and time in UTC when the resource was last updated
Return type:datetime
update()[source]

Update the AuthTokenPromotionInstance

Returns:The updated AuthTokenPromotionInstance
Return type:twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionInstance
url
Returns:The URI for this resource, relative to https://accounts.twilio.com
Return type:unicode
class twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionList(version)[source]

Bases: twilio.base.list_resource.ListResource

get()[source]

Constructs a AuthTokenPromotionContext

Returns:twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionContext
Return type:twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionContext
class twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionPage(version, response, solution)[source]

Bases: twilio.base.page.Page

get_instance(payload)[source]

Build an instance of AuthTokenPromotionInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionInstance
Return type:twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionInstance

twilio.rest.accounts.v1.secondary_auth_token module

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

(_)/(_)(_|/| |(/_ v1.0.0 / /

System Message: WARNING/2 (/twilio/repos/twilio-python/twilio/rest/accounts/v1/secondary_auth_token.py:docstring of twilio.rest.accounts.v1.secondary_auth_token, line 3); backlink

Inline substitution_reference start-string without end-string.
class twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenContext(version)[source]

Bases: twilio.base.instance_context.InstanceContext

create()[source]

Create the SecondaryAuthTokenInstance

Returns:The created SecondaryAuthTokenInstance
Return type:twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenInstance
delete()[source]

Deletes the SecondaryAuthTokenInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
class twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenInstance(version, payload)[source]

Bases: twilio.base.instance_resource.InstanceResource

account_sid
Returns:The SID of the Account that the secondary Auth Token was created for
Return type:unicode
create()[source]

Create the SecondaryAuthTokenInstance

Returns:The created SecondaryAuthTokenInstance
Return type:twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenInstance
date_created
Returns:The ISO 8601 formatted date and time in UTC when the resource was created
Return type:datetime
date_updated
Returns:The ISO 8601 formatted date and time in UTC when the resource was last updated
Return type:datetime
delete()[source]

Deletes the SecondaryAuthTokenInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
secondary_auth_token
Returns:The generated secondary Auth Token
Return type:unicode
url
Returns:The URI for this resource, relative to https://accounts.twilio.com
Return type:unicode
class twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenList(version)[source]

Bases: twilio.base.list_resource.ListResource

get()[source]

Constructs a SecondaryAuthTokenContext

Returns:twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenContext
Return type:twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenContext
class twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenPage(version, response, solution)[source]

Bases: twilio.base.page.Page

get_instance(payload)[source]

Build an instance of SecondaryAuthTokenInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenInstance
Return type:twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenInstance

Module contents

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

(_)/(_)(_|/| |(/_ v1.0.0 / /

System Message: WARNING/2 (/twilio/repos/twilio-python/twilio/rest/accounts/v1/__init__.py:docstring of twilio.rest.accounts.v1, line 3); backlink

Inline substitution_reference start-string without end-string.
class twilio.rest.accounts.v1.V1(domain)[source]

Bases: twilio.base.version.Version

auth_token_promotion
Return type:twilio.rest.accounts.v1.auth_token_promotion.AuthTokenPromotionList
credentials
Return type:twilio.rest.accounts.v1.credential.CredentialList
secondary_auth_token
Return type:twilio.rest.accounts.v1.secondary_auth_token.SecondaryAuthTokenList