Skip to content

tommorris/elpushover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elpushover

An Elixir library based on HTTPoison to send notifications through Pushover.

Currently very pre-release. Hex release will follow when ready.

Configuration

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.

Usage

{ok, resp, http_resp} = Elpushover.notify("Hello world!")

{ok, resp, http_resp} = Elpushover.notify("Message only for my iPad", %{device: "iPad"})

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages