UnixTM

ntfy.sh API

Aug 11th, 2022
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. function send(topic, message, title)
  2.     if title ~= nil then
  3.         return(http.post("http://ntfy.sh/" .. topic, message, { ["Title"] = title }))
  4.     else
  5.         return(http.post("http://ntfy.sh/" .. topic, message))
  6.     end
  7. end
Add Comment
Please, Sign In to add comment