•   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?

  • 5 comments

  •   •   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?

  •   •   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

  •   •   over 10 years ago

    Forgot to mention, I'm following the docs here: https://www.hipchat.com/docs/apiv2/addons, specifically the Installation section

  •   •   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.

  •   •   over 10 years ago

    you nailed it, thanks

Comments are closed.