in src/main/java/software/aws/chatops_lex_api/resource/Util.java [147:154]
public static String postSlack(String token, String channel, String text) throws Exception {
Map<String, String> httpHeaders = new HashMap<>();
httpHeaders.put("Content-type", "application/json");
httpHeaders.put("Authorization", "Bearer "+token);
return Util.post("https://slack.com/api/chat.postMessage", httpHeaders, String.format("{\"channel\": \"%s\", \"text\": \"%s\" }", channel, text));
}