It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 votes
Anatoli Atlassian Team Apr 17, 2016

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.

 

 

Anatoli Atlassian Team Apr 19, 2016

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
TAGS
Community showcase
Published in Hipchat

Hipchat Cloud and Stride have reached End of Life (updated)

All good things come to an end - thanks to all our customers and partners who have been along the Hipchat and Stride journey with us.  As of Feb 15th 2019, Hipchat Cloud and Stride have reached ...

35,199 views 9 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you