Created
February 5, 2014 14:49
-
-
Save nerrad/8825261 to your computer and use it in GitHub Desktop.
Curl string for pinging HipChat server.
Event Espresso (one of my clients) is trying out the hipchat.com service and they have a really cool api for sending notifications/messages to the chat rooms. So I wired up our git deploy repo on our server to notify the chatrooms whenever we deploy. Here's the one liner script I added.
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
curl --data "room_id=99999" --data "from=EEWebsiteBot" --data-urlencode "message=Event Espresso staging servers (beta and dev) have been deployed to" --data "message_format=text" --data "notify=1" --data "color=purple" https://api.hipchat.com/v1/rooms/message?auth_token=obsfucated_api_token | |
##So the room_id corresponds to what room you want the notifications go to and the auth token is the api key you generate via the group admin in HipChat (web). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment