9 lines
262 B
Bash
9 lines
262 B
Bash
#!/bin/bash
|
|
# Baseado em BEEZAP - Bee Solutions.
|
|
|
|
URL="http://zbx-walert:4000/api/send"
|
|
PHONE="$1"
|
|
TITULO="$2"
|
|
MESSAGE="$TITULO$3"
|
|
|
|
wget -q -O- --post-data "{\"number\": \"${PHONE}\", \"message\": \"${MESSAGE}\"}" "$URL" --header "content-type: application/json" |