Consider the use case where I want to spin up a HipChat room to address a specific issue. I can use the HipChat API to do so in an automated fashion. As part of setting up that room, I want to give the users some capabilities, like /DoThis or /DoThat where the slash command posts to a given endpoint and takes responses back from it.. I could make those general features for all of HipChat (added as integrations to ANY room), but that has drawbacks.
Is there an API I can use with cURL (or otherwise) to add dynamically add a slash command to a room?
Sounds like an integration/addon is the right way to achieve that.
In order to perform actions in response to slash commands (any pattern in the user's message actually), you would use webhooks: https://www.hipchat.com/docs/apiv2/webhooks
Here is the comprehensive guide on how to start developing your integration with Atlassian Connect Express: https://developer.atlassian.com/hipchat/tutorials/getting-started-with-atlassian-connect-express-node-js - it even includes the sample slash command "/hello"!
Make sure to check out this blog post as well - it has a nice walkthrough on setting up a simple slash command: https://blog.hipchat.com/2015/02/11/build-your-own-integration-with-hipchat/
All good things come to an end - thanks to all our customers and partners who have been along the Hipchat and Stride journey with us. As of Feb 15th 2019, Hipchat Cloud and Stride have reached ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs