Official Elixir API Client for seven
Add the package to your mix.exs
dependencies:
def deps do
[{:seven, "~> 0.1"}]
end
Fetch dependencies and start elixir console:
mix deps.get
iex -S mix
# If your API key is not set as environment variable SEVEN_API_KEY
# Application.put_env(:seven, :api_key, "INSERT_YOUR_SEVEN_API_KEY")
# Retrieve balance associated with given API key
Seven.Balance.get!
# Retrieve balance associated with given API key
Seven.Sms.post!(
%{
text: "HI2U!",
to: "+491799999999",
}
)
Need help? Feel free to contact us.