Endpoints to use for hipchat webhooks and integrations.
Each endpoint provides example POST data when viewed as a GET request. Use that data in Chrome DHC or Postman or whatever you use for that kind of stuff.
You can run locally with node...
$ node index
But you won't have the required API keys. If running locally and using the Heroku Toolbelt, you should create an .env file with your api keys and run locally with:
$ foreman start dev
###Required Api vars (add these to a .env file)
IMGUR_ID="xxxxx"
YOU_TUBE_KEY="xxxx"
NOTE: you must be an admin of the room to proceed. See here for a list of all available hooks.
- Log in to the hipchat website.
- Go to http://hipchat.com/rooms?t=mine
- Click on the My Rooms tab
- Click on the room to which you want to add the bot.
- On the left panel, click the "Integrations" link.
- Make sure the "Find New" tab is selected.
- The first tile under the bitbucket banner should be "Build Your Own!" Click create.
- Enter a name for your integration. This will be the bot's chatroom handle. Click create.
- Scroll to the bottom of the page and check the box that says "Add a Command".
- Where it says enter your slash command enter the slug for your bot. Ex: "/jif". This is what triggers the bot.
- Where it says "We will POST to this URL"enter the api url and append your slug. Ex: https://hipchathooks.herokuapp.com/api/jif
- Click "Save".
###Learn more Read How to create a HipChat webhook. And see also.