File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,13 +22,14 @@ libraryDependencies += "in.ashwanthkumar" % "slack-java-webhook" % "0.0.3"
2222## Usage
2323``` java
2424// Using SlackMessage
25- new Slack (). icon(" :smiling_imp:" ) // Anything from http://www.emoji-cheat-sheet.com/ should work here
25+ new Slack (webhookUrl)
26+ .icon(" :smiling_imp:" ) // Ref - http://www.emoji-cheat-sheet.com/
2627 .sendToUser(" slackbot" )
2728 .displayName(" slack-java-client" )
28- .push(new SlackMessage (" Text from my Slack-Java-Client" ));
29+ .push(new SlackMessage (" Text from my " ) . bold( " Slack-Java-Client" ));
2930
3031// Using SlackAttachment
31- new Slack ()
32+ new Slack (webhookUrl )
3233 .sendToUser(" slackbot" )
3334 .displayName(" slack-java-client" )
3435 .push(new SlackAttachment (" Text from my Slack-Java-Client" ). author(" ashwanthkumar" , " https://avatars0.githubusercontent.com/u/600279?v=3&s=40" ));
You can’t perform that action at this time.
0 commit comments