class Twilio::AccountsApi
- Twilio::AccountsApi
- Reference
- Object
Defined in:
twilio/api/accounts_api.crConstant Summary
-
LIST_ACCOUNT_MAX_FOR_PAGE_SIZE =
Int32.new("1000")
-
LIST_ACCOUNT_MIN_FOR_PAGE_SIZE =
Int32.new("1")
Constructors
Instance Method Summary
- #account_sid : String
- #account_sid=(account_sid : String)
- #api_client : ApiClient
- #api_client=(api_client : ApiClient)
-
#build_api_request_for_create_account(*, friendly_name : String | Nil = nil) : Crest::Request
@return Crest::Request
-
#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
- #client_side_validation?(*args, **options)
- #client_side_validation?(*args, **options, &)
-
#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] -
#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 -
#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 - #debugging?(*args, **options)
- #debugging?(*args, **options, &)
-
#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.
-
#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.
-
#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.
Constructor Detail
Instance Method Detail
@return Crest::Request
@return Crest::Request
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]
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
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
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]
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
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