An Elixir library based on HTTPoison to send notifications through Pushover.
Currently very pre-release. Hex release will follow when ready.
To use, you need to set two environment variables: PUSHOVER_API_KEY
and PUSHOVER_USER_TOKEN
.
In a Mix-based application, you can set these in your config/config.exs
file:
config :elpushover, api_key: System.get_env("PUSHOVER_API_KEY")
config :elpushover, user_token: System.get_env("PUSHOVER_USER_TOKEN")
You can override these values at run time.
{ok, resp, http_resp} = Elpushover.notify("Hello world!")
{ok, resp, http_resp} = Elpushover.notify("Message only for my iPad", %{device: "iPad"})