- Elixir >= 1.5.2
- A plivo account
- Add
ex_plivo
to your list of dependencies inmix.exs
and install it:
def deps do
[
{:ex_plivo, "~> 0.1.1"}
]
end
$ mix deps.get
- Create environment variables
AUTH_ID
,AUTH_TOKEN
,APP_ID
containing the appropriate values from your plivo account:
$ export AUTH_ID=YOUR_PLIVO_AUTH_ID
$ export AUTH_TOKEN=YOUR_PLIVO_AUTH_TOKEN
$ export APP_ID=YOUR_PLIVO_APP_ID
You can call any functions from the Adapter
module. For example:
Plivo.Adapter.create_number("GB", "mobile", "voice")
The docs can be found at https://hexdocs.pm/ex_plivo.