class

Twilio::AccountsApi

Inherits Reference / Object

Constants

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

Constructors

new(api_client : Twilio::ApiClient = ApiClient.default)
Source

Instance methods

account_sid
Source
account_sid=(account_sid : String)
Source
api_client
Source
api_client=(api_client : ApiClient)
Source
build_api_request_for_create_account(*, friendly_name : String | Nil = nil) : Crest::Request

@return Crest::Request

Source
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

Source
client_side_validation?(*args, **options)
Source
client_side_validation?(*args, **options, &)
Source
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]

Source
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

Source
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

Source
debugging?(*args, **options)
Source
debugging?(*args, **options, &)
Source
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]

Source
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

Source
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

Source