How to use *Services from base-hipchat-integration-plugin?


Does anyone know where to find some examples or guidelines for using code from base-hipchat-integration-plugin to manage HipChat rooms from BitBucket plugin?

I’m trying to create HC rooms upon creation of BitBucket projects and linking them with every new repository, which is created within the project. Methods of HipChatApiService look promissing, but it’s difficult for figure out their parameters.

With kind regards,

PS: If this code is not to be used by plugins and it’s better to reserve to REST API of HipChat, is there a way to find out its URL from BitBucket?

HipChatApiService helps to retrive URL of HipChat, which is integrated with BitBucket. However, are there ways to authenticate BitBucket add-on? Without authentication, it sees public rooms only