Category : chatops

maven <dependency> <groupId>io.evanwong.oss</groupId> <artifactId>hipchat-java</artifactId> <version>0.4.2</version> </dependency> Example @Test public void hipchat() throws ExecutionException, InterruptedException { HipChatClient client = new HipChatClient(notificationToken); SendRoomNotificationRequestBuilder builder = client.prepareSendRoomNotificationRequestBuilder(“errorlog”, “Some <b>html</b>, &lt;entities&gt;, 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 hipchat-rest-api hi..

Read more

Example BearychatService client = new BearychatService(); BearychatMessage message = BearychatMessage.newMessage(title,link); Map<String,Object> data = req.getParams(); message.attachments(new BearychatAttachment(“message”,req.getMessage(), Color.YELLOW)); client.push(webhook,message); docs bearychat-for-..

Read more