Skip to content
This repository was archived by the owner on Aug 15, 2020. It is now read-only.

JianYi-Huang/pushover-lua

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

pushover-lua

Simple Pushover (https://pushover.net) API wrapper/snippet in Lua.

Usage

require("pushover") -- setup the three required fields of the request table: local request = { token = "APP_TOKEN", -- your application's API token user = "USER_KEY", -- the user key of your user, viewable when logged into the dashboard message = "Hello World!" -- your message } -- Some optional parameters may be included: device, title, url, url_title, priority, timestamp, sound -- Read more about the parameters on: https://pushover.net/api -- send the request, don't forget to check the return values local success, err = pushover( request ) if (success) then print("Yay the push was sent!") else print("Nay, the push failed with error: " .. err) end

success will be true on a successfull pushover response, and false in case of an error. (err will also be set in this case.)

Dependencies

License

Public domain, use anyway you want.

About

Simple Pushover (https://pushover.net) API wrapper/snippet in Lua.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Lua 100.0%