Bash HipChat Notification

Sun, 30 October 2016

hipchat.sh
#!/usr/bin/env bash

AUTH="Your API Key Here"
ROOM="Your Room Name Here"
URL="https://api.hipchat.com/v1/rooms/message"
FROM="Bash"
MESSAGE="Sending messages to HipChat in <b>bash</b> is simple!"
COLOR="green"
NOTIFY="1"
RESULT=$(curl -X POST $URL --data "auth_token=$AUTH&room_id=$ROOM&from=$FROM&message=$MESSAGE&format=json&notify=$NOTIFY&color=$COLOR" --silent)