Skip to content

Commit 5dbbcce

Browse files
committed
Added pushover hook example
1 parent aaa49b8 commit 5dbbcce

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
#
4+
# Pushover notification script
5+
# @author Martin Dagarin
6+
# @version 1
7+
# @since 19/03/2019
8+
#
9+
# @see https://pushover.net/api
10+
#
11+
12+
URL="https://api.pushover.net/1/messages.json"
13+
14+
# Here put your app token
15+
APP_TOKEN=""
16+
17+
# Here put your user or group key
18+
USER_KEY=""
19+
20+
TITLE="TestTile"
21+
MESSAGE="This is test message"
22+
23+
# Send to server
24+
curl -s \
25+
--form-string "token=${APP_TOKEN}" \
26+
--form-string "user=${USER_KEY}" \
27+
--form-string "title=${TITLE}" \
28+
--form-string "message=${MESSAGE}" \
29+
${URL}

0 commit comments

Comments
 (0)