Twilio. AvailablePhoneNumbers
(twilio v0.2.0)
Copy Markdown
API calls: list, retrieve.
Summary
Functions
GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json
Like list/2, but returns the result or raises Infusion.Runtime.Error.
GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json
Like retrieve/2, but returns the result or raises Infusion.Runtime.Error.
Functions
@spec list(map() | keyword(), keyword()) :: {:ok, Twilio.Schemas.AvailablePhoneNumbersListResponse.t()} | {:error, Infusion.Runtime.Error.t()}
GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json
{AccountSid} in the path is the :account_sid setting; pass account_sid: "..." as an option to use another.
Parameters
page_size- How many resources to return in each list page. The default is 50, and the maximum is 1000.page- The page index. This value is simply for client state.page_token- The page token. This is provided by the API.
@spec list!(map() | keyword(), keyword()) :: Twilio.Schemas.AvailablePhoneNumbersListResponse.t()
Like list/2, but returns the result or raises Infusion.Runtime.Error.
@spec retrieve(String.t(), keyword()) :: {:ok, Twilio.Schemas.AvailablePhoneNumberCountry.t()} | {:error, Infusion.Runtime.Error.t()}
GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json
Path parameters
country_code(required) - The ISO-3166-1 country code of the country to fetch available phone number information about.
{AccountSid} in the path is the :account_sid setting; pass account_sid: "..." as an option to use another.
@spec retrieve!(String.t(), keyword()) :: Twilio.Schemas.AvailablePhoneNumberCountry.t()
Like retrieve/2, but returns the result or raises Infusion.Runtime.Error.