Plivo
Prerequisites
- Elixir >= 1.5.2
- A plivo account
Installation
-
Add
ex_plivoto your list of dependencies inmix.exsand install it:
def deps do
[
{:ex_plivo, "~> 0.1.0"}
]
end$ mix deps.get-
Create environment variables
AUTH_ID,AUTH_TOKEN,APP_IDcontaining 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_IDUsage
You can call any functions from the Adapter module. For example:
Plivo.Adapter.create_number("GB", "mobile", "voice")Docs
The docs can be found at https://hexdocs.pm/ex_plivo.