How to retrieve info from integrations POST?

Hi. I'm attempting to create an integration to keep track of certain dev environments for users in a room. Currently I've gotten as far as setting up a Node server and returning a string in response to a slash command.

However, in the "example webhook data", none of the JSON seems to be defined as listed:

image.png

I tried to log the item but it only comes back as "Undefined". 

image.png

Logging the req itself shows a massive JSON object, but scrolling through it doesn't reveal anything that looks related to the "example webhook data".

Essentially I would like to have users be able to type a slash command and then an argument or series of arguments, and return data based on that. Any help would be greatly appreciated.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 10, 2018 in Hipchat

What should I think about when migrating HipChat to Slack?

...from the beginning. We have built up a lot of content in HipChat, with it being a core tool in our distributed company model. While it is true that we didn’t need to move to Slack immediately, we felt it...

593 views 2 11
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you