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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 8 hours ago in Hipchat

Moving from Hipchat to Stride? Here’s what you’ll love

Heya, Hipchat friends! We’re so happy you’re checking out   Stride. Whether you know it or not, you have been instrumental in making Stride come to life. Every feature, design, and functionality...

36 views 0 4
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