Making HipChat Even Hipp-ier: Automating Your Chats with CloudBees Flow
Written by: Electric Bee
1 min read


Integrating HipChat and CloudBees Flow:
- To post data to Hipchat, you need an auth token, which can be easily generated . In this example, we've hard-coded the token, but you can use CloudBees Flow Credentials to secure that information.
- Then, do a simple REST call to Hipchat’s API:
#!/bin/bash ROOM_ID=408129 AUTH_TOKEN=yourauthtokenhere _now=$(date +"m-d-Y") MESSAGE="======= $_now - Daily Scrum START ========" curl -H "Content-Type: application/json" \ -X POST \Ô -d "{\"color\": \"green\", \"message_format\": \"text\", \"message\": \"$MESSAGE\" }" \ http://api.hipchat.com/v2/room/$ROOM_ID/notification?auth_token=$AUTH_TOKEN
- You can obtain the room ID by logging into the HipChat web app.
- The green color simply serves to differentiate the message from the rest:
Stay up to date
We'll never share your email address and you can opt out at any time, we promise.