Bandwidth.Resources.AvailableNumbers.TollFree
Search and order toll free telephone numbers.
Summary↑
order(client, order) | Search and order available toll free numbers |
search(client, params \\ []) | Search for available toll free numbers |
Functions
Specs:
- order(Client.t, Map.t) :: Client.response
Search and order available toll free numbers.
Example:
order = %{ quantity: 3 }
case Bandwidth.Resources.AvailableNumbers.TollFree.order(client, order) do
{:ok, {201, numbers, _}} -> IO.inspect numbers
{:error, reason} -> IO.puts "Error: #{reason}"
end
Specs:
- search(Client.t, Client.params) :: Client.response
Search for available toll free numbers.
Example:
case Bandwidth.Resources.AvailableNumbers.TollFree.order(client, pattern: "*2?9*", quantity: 2) do
{:ok, {200, numbers, _}} -> IO.inspect numbers
{:error, reason} -> IO.puts "Error: #{reason}"
end