Last active
May 21, 2022 23:13
-
-
Save danriti/3095606 to your computer and use it in GitHub Desktop.
HipChat - Send a message to a 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
# Build Passes | |
curl -d "room_id=ourRoom&from=BuildBot&message=Build+Status:+Passing&color=green" https://api.hipchat.com/v1/rooms/message?auth_token=AUTH_TOKEN_HERE&format=json | |
# Build Fails | |
curl -d "room_id=ourRoom&from=BuildBot&message=Build+Status:+Failing&color=red¬ify=1" https://api.hipchat.com/v1/rooms/message?auth_token=AUTH_TOKEN_HERE&format=json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found the following helpful:
This way the message is separated out more clearly and you let curl do the encoding for you.