Skip to content

seven-io/elixir-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Official Elixir API Client for seven

Installation

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

Examples

# 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",
  }
)

Support

Need help? Feel free to contact us.

MIT