Created
January 26, 2015 18:29
-
-
Save buren/3c65a8ecf7e303dcaba5 to your computer and use it in GitHub Desktop.
Send message to private HipChat room using cURL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ROOM_ID=yourroomname | |
OWNER_ID=XXXYYYX | |
AUTH_TOKEN=XXXYYYXXX | |
MESSAGE="Hello world!" | |
curl --header "content-type: application/json" --header "Authorization: Bearer $AUTH_TOKEN" -X POST \ | |
-d "{\"name\":\"dev\",\"privacy\":\"private\",\"is_archived\":false,\"is_guest_accessible\":false,\"topic\":\"cURL\",\"message\":\"Message sent to HipChat from cURL\",\"color\":\"green\",\"owner\":{\"id\":$OWNER_ID}}" https://api.hipchat.com/v2/room/$ROOM_ID/notification |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment