maven
<dependency>
<groupId>io.evanwong.oss</groupId>
<artifactId>hipchat-java</artifactId>
<version>0.4.2</version>
</dependency>
实例
@Test
public void hipchat() throws ExecutionException, InterruptedException {
HipChatClient client = new HipChatClient(notificationToken);
SendRoomNotificationRequestBuilder builder = client.prepareSendRoomNotificationRequestBuilder("errorlog", "Some <b>html</b>, <entities>, and a <a href=\"https://www.hipchat.com\">link</a>.<br />We can even use line breaks!");
Future<NoContent> future = builder.setColor(MessageColor.YELLOW).setNotify(true).build().execute();
NoContent noContent = future.get();
System.out.println(noContent);
}
docs
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。