Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/seven-io/elixir-client
- Owner: seven-io
- License: mit
- Created: 2021-04-05T11:43:56.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T13:29:19.000Z (about 1 year ago)
- Last Synced: 2024-09-17T06:43:15.915Z (4 months ago)
- Topics: api-client, cnam, hlr, mnp, sdk, sms, tts
- Language: Elixir
- Homepage: https://hex.pm/packages/sms77/
- Size: 175 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)