class Twilio::AccountsApi

Defined in:

twilio/api/accounts_api.cr

Constant Summary

LIST_ACCOUNT_MAX_FOR_PAGE_SIZE = Int32.new("1000")
LIST_ACCOUNT_MIN_FOR_PAGE_SIZE = Int32.new("1")

Constructors

Instance Method Summary

Constructor Detail

def self.new(api_client : Twilio::ApiClient = ApiClient.default) #

[View source]

Instance Method Detail

def account_sid : String #

[View source]
def account_sid=(account_sid : String) #

[View source]
def api_client : ApiClient #

[View source]
def api_client=(api_client : ApiClient) #

[View source]
def build_api_request_for_create_account(*, friendly_name : String | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def build_api_request_for_list_account(*, friendly_name : String | Nil = nil, status : Twilio::AccountEnumStatus | Nil = nil, page_size : Int32 | Nil = nil) : Crest::Request #

@return Crest::Request


[View source]
def client_side_validation?(*args, **options) #

[View source]
def client_side_validation?(*args, **options, &) #

[View source]
def create_account(*, friendly_name : String | Nil = nil) : Twilio::Account #

Create a new Twilio Subaccount from the account making the request @optional @param friendly_name [String?] A human readable description of the account to create, defaults to SubAccount Created at {YYYY-MM-DD HH:MM meridian} @return [Twilio::Account]


[View source]
def create_account(*, friendly_name : String | Nil = nil, &block : Crest::Response -> ) : Nil #

Create a new Twilio Subaccount from the account making the request @optional @param friendly_name [String?] A human readable description of the account to create, defaults to SubAccount Created at {YYYY-MM-DD HH:MM meridian} @return nil


[View source]
def create_account_with_http_info(*, friendly_name : String | Nil = nil) : Tuple(Twilio::Account, Int32, Hash(String, Array(String) | String)) #

Create a new Twilio Subaccount from the account making the request @optional @param friendly_name [String?] A human readable description of the account to create, defaults to SubAccount Created at {YYYY-MM-DD HH:MM meridian} @return [Tuple(Twilio::Account, Integer, Hash)] Twilio::Account, response status code and response headers


[View source]
def debugging?(*args, **options) #

[View source]
def debugging?(*args, **options, &) #

[View source]
def list_account(*, friendly_name : String | Nil = nil, status : Twilio::AccountEnumStatus | Nil = nil, page_size : Int32 | Nil = nil) : Twilio::ListAccountResponse #

Retrieves a collection of Accounts belonging to the account used to make the request @optional @param friendly_name [String?] Only return the Account resources with friendly names that exactly match this name. @optional @param status [Twilio::AccountEnumStatus?] Only return Account resources with the given status. Can be closed, suspended or active. @optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000. @return [Twilio::ListAccountResponse]


[View source]
def list_account(*, friendly_name : String | Nil = nil, status : Twilio::AccountEnumStatus | Nil = nil, page_size : Int32 | Nil = nil, &block : Crest::Response -> ) : Nil #

Retrieves a collection of Accounts belonging to the account used to make the request @optional @param friendly_name [String?] Only return the Account resources with friendly names that exactly match this name. @optional @param status [Twilio::AccountEnumStatus?] Only return Account resources with the given status. Can be closed, suspended or active. @optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000. @return nil


[View source]
def list_account_with_http_info(*, friendly_name : String | Nil = nil, status : Twilio::AccountEnumStatus | Nil = nil, page_size : Int32 | Nil = nil) : Tuple(Twilio::ListAccountResponse, Int32, Hash(String, Array(String) | String)) #

Retrieves a collection of Accounts belonging to the account used to make the request @optional @param friendly_name [String?] Only return the Account resources with friendly names that exactly match this name. @optional @param status [Twilio::AccountEnumStatus?] Only return Account resources with the given status. Can be closed, suspended or active. @optional @param page_size [Int32?] How many resources to return in each list page. The default is 50, and the maximum is 1000. @return [Tuple(Twilio::ListAccountResponse, Integer, Hash)] Twilio::ListAccountResponse, response status code and response headers


[View source]