@sendsonar api interface for elixir
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
test
.gitignore
.travis.yml
README.md
mix.exs
mix.lock

README.md

Sonar

Build Status Hex

Sonar documentation here -- http://docs.sendsonar.com/

Installation

This package can be installed as:

  1. Add ex_sonar to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:ex_sonar, "~> 2.0"}]
end
```
  1. Ensure ex_sonar is started before your application:
```elixir
def application do
  [applications: [:ex_sonar]]
end
```
  1. OPTIONAL: Add this line to your config if you'd like to change the dev and test mix environments for the dependency:
# log-in info from sandbox.sendsonar.com
config :ex_sonar, Sonar,
  environment_name: Mix.env, # optional
  xtoken: YOUR_PRIVATE_KEY,
  public_key: YOUR_PUBLIC_KEY,
  email: YOUR_EMAIL,
  password: YOUR_PASSWORD
  1. REQUIRED: You will need these config options for production though:
# log-in info from sendsonar.com
# /config/prod.exs
config :ex_sonar, Sonar,
  xtoken: YOUR_PRIVATE_KEY,
  public_key: YOUR_PUBLIC_KEY,
  email: YOUR_EMAIL,
  password: YOUR_PASSWORD

TODO

  • Messages support
    • Facebook messenger
  • Add Documentation
  • Handle Error Cases