diff --git a/Linux/gotify.sh b/Linux/gotify.sh new file mode 100644 index 0000000..78865e9 --- /dev/null +++ b/Linux/gotify.sh @@ -0,0 +1,7 @@ +#!/bin/bash +TITLE="My Title" +MESSAGE="Hello: ![](https://gotify.net/img/logo.png)" +PRIORITY=5 +URL="http://localhost:8008/message?token=" + +curl -s -S --data '{"message": "'"${MESSAGE}"'", "title": "'"${TITLE}"'", "priority":'"${PRIORITY}"', "extras": {"client::display": {"contentType": "text/markdown"}}}' -H 'Content-Type: application/json' "$URL" \ No newline at end of file