Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/seven-io/elixir-client

Official Elixir API Client for seven.io
https://github.com/seven-io/elixir-client

api-client cnam hlr mnp sdk sms tts

Last synced: 3 days ago
JSON representation

Official Elixir API Client for seven.io

Awesome Lists containing this project

README

        

# Official Elixir API Client for [seven](https://www.seven.io/)

## Installation

Add the package to your `mix.exs` dependencies:

```elixir
def deps do
[{:seven, "~> 0.1"}]
end
```

Fetch dependencies and start elixir console:

```console
mix deps.get
iex -S mix
```

### Examples

```elixir
# 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](https://www.seven.io/en/company/contact/).

[![MIT](https://img.shields.io/badge/License-MIT-teal.svg)](LICENSE)