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

Functions

list(params \\ %{}, opts \\ [])

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.

list!(params \\ %{}, opts \\ [])

Like list/2, but returns the result or raises Infusion.Runtime.Error.

retrieve(country_code, opts \\ [])

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.

retrieve!(country_code, opts \\ [])

Like retrieve/2, but returns the result or raises Infusion.Runtime.Error.