How to get fully qualified domain name of hipchat server on which my plugin is installed?

I would like to get the FQDN (fully qaulified domain name)  of the HipChat server on which my add on is installed.

So that I can use them in the message card URL.

When I get incoming request to addon, the request contains only roomId and userId.

Is there any way to identify form which HipChat server the request is coming from?

example:

company1.hipchat,com, company2.hipchat.com, etc;

 

1 answer

0 votes

Hi Ramesh,

 

you can use view group api to get the domain name. You need to have the right scopes in order to all that method.

Also, just though of if. During the installation you get the capabilities url – you can extract FQDN from there. You would need the url to call any of the api methods anyway.

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

506 views 1 10
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