Alex Soto • over 10 years ago
[HIPCHAT] Anyone getting the install and uninstall callbacks to work?
I'm not getting the callbacks the docs say you should get when you install/uninstall. Only requests that come through is for the capabilities.
Anyone have any luck?
Comments are closed.

5 comments
Ralph Whitbeck • over 10 years ago
Hey Alex, which docs are you following? Are you using Node.js? Do you have the install and uninstall callbacks declared in your atlassian-connect.json file as well as callback code defined in your code?
Can you post your code for me to look at?
Alex Soto • over 10 years ago
Hey There,
I'm not using node. I tried using the node/vagrant starter package to compare against my code but node crashes.
However, looking at the capabilities json the node sample provides, I didn't notice anything I wasn't providing. When I try to install, I successfully get a request for the capabilities, but none of the callbacks are ever requested.
Here is my capabilities json:
{
"name": "Test Bot",
"description": "A test ntegration",
"key": "com.cohibots.bot",
"capabilities": {
"hipchatApiConsumer": {
"scopes": [
"send_notification",
"send_message"
]
}
},
"links": {
"self": "https:\/\/2a868974.ngrok.io\/conference\/capabilities",
"homepage": "https:\/\/2a868974.ngrok.io\/conference\/install"
},
"installable": {
"allowGlobal": true,
"allowRoom": true,
"callbackUrl": "https:\/\/2a868974.ngrok.io\/conference\/installed",
"installedUrl": "https:\/\/2a868974.ngrok.io\/conference\/installed",
"uninstalledUrl": "https:\/\/2a868974.ngrok.io\/conference\/installed"
}
}
Thanks for helping out.
Alex
Alex Soto • over 10 years ago
Forgot to mention, I'm following the docs here: https://www.hipchat.com/docs/apiv2/addons, specifically the Installation section
Conor MacNeill • over 10 years ago
The installable entry should be nested under the capabilities entry - a sibling of hipchatApiConsumer - you have it one level up, I think.
Alex Soto • over 10 years ago
you nailed it, thanks