A Legion Extension designed to connect Legion to Pushover
Add this line to your application's Gemfile:
gem 'lex-pushover'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install lex-pushover
You can manually install with a gem install lex-pushover
command or by adding it into your settings with something like this
{
"extensions": {
"pushover": {
"enabled": true,
"workers": 1,
"token": "___token___", # optional and can be passed in via the payload
"user": "user" # optional and can be passed in via the payload
}
}
}
There is only a single runner in this LEX. It can make the following calls
function | message | title | token | user |
---|---|---|---|---|
push | Required | Optional | Optional | Optional |
emergency | Required | Optional | Optional | Optional |
high | Required | Optional | Optional | Optional |
normal | Required | Optional | Optional | Optional |
low | Required | Optional | Optional | Optional |
lowest | Required | Optional | Optional | Optional |
Other optional parameteres
message priority device title url url_title sound expire retry callback
{"message": "Hello World!"}
{"title": "Hello World!", "message": "I am a notification"}
{"message": "With Creds","token": "easy as abc 123"}
The gem is available as open source under the terms of the MIT License.