Sending messages to HipChat

Team,

I used the old way to send messages:

client = new HipChat(accessKey);

 

Room room = client.getRoom(roomID);

         UserId from = UserId.create(userID, name);

         if(room != null){

          room.sendMessage(message, from, false, Color.PURPLE);

         }

 

 

 

Are there examples on how to do this with the new JSON API?

1 answer

0 vote

Hi David,

Have a look at our documentation, it describes the different message formats. It is the same end point as before just the format of the message is different. You can also look at the examples in an add-on like https://bitbucket.org/hipchat/hipconnecttester .

Anatoli,

Thank you for the quick response. I was looking thru the documentation. I just need a simple java example to post messages from the testing framework.

 

 

Have a look through some of the java libraries defined on this page . E.g. https://github.com/evanwong/hipchat-java

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Mar 26, 2018 in Hipchat Data Center

Migration of Hipchat server to Data Center - a retrospective

Background While our Hipchat server environment was reliable and performing well, as a significant and growing part of our business, the need to leverage the benefits of Hipchat Data Center&nbs...

458 views 2 6
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