Skip to content

Instantly share code, notes, and snippets.

@MikeTatsky
Forked from danriti/hipchat-v2.sh
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikeTatsky/20064bd0de0b4f9c8aa8 to your computer and use it in GitHub Desktop.
Save MikeTatsky/20064bd0de0b4f9c8aa8 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Set the ROOM_ID & AUTH_TOKEN variables below.
# Further instructions at https://www.hipchat.com/docs/apiv2/auth
ROOM_ID=XXX
AUTH_TOKEN=XXX
MESSAGE="Hello world!"
curl -H "Content-Type: application/json" \
-X POST \
-d "{\"color\": \"purple\", \"message_format\": \"text\", \"message\": \"$MESSAGE\" }" \
https://api.hipchat.com/v2/room/$ROOM_ID/notification?auth_token=$AUTH_TOKEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment