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 Nov 14, 2018 in Hipchat Cloud

Hipchat Cloud and Stride End of Life: Just over 90 days away

Earlier this year we made the difficult decision to discontinue our team messaging tools, Stride and Hipchat. The end of life date for Stride and Hipchat Cloud is quickly approaching - February 15, 2...

29,951 views 0 7
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