Skip to content

vjebelev/pushover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pushover

An Elixir client for the Pushover app.

Installation

The package can be installed by adding pushover to your list of dependencies in mix.exs:

def deps do
  [
    {:pushover, "~> 0.3.3"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/pushover.

Usage

Make sure Pushover user string and application tokens are setup in your config file (example below is for Elixir 1.9+), if using an older version use Mix.Config instead of Config.

use Mix.Config

config :pushover,
  user: "YOUR_PUSHOVER_USER",
  token: "YOUR_PUSHOVER_TOKEN"

Alternatively, use environment variables PUSHOVER_USER and PUSHOVER_TOKEN.

To send a message via Pushover Message API:

message = %Pushover.Model.Message{
  data: "Hello, World!",
  device: "max,lesley,john",
  title: "Meeting",
  priority: 1
}

Pushover.Api.Messages.send(message)

About

Elixir client for the Pushover app.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages