Interface SlackService

    • Method Detail

      • publish

        boolean publish​(String message)
      • publish

        boolean publish​(String message,
                        String color)
      • publish

        boolean publish​(String message,
                        net.sf.json.JSONArray attachments,
                        String color)
      • publish

        boolean publish​(String message,
                        net.sf.json.JSONArray attachments,
                        String color,
                        String timestamp)
      • addReaction

        boolean addReaction​(String channelId,
                            String timestamp,
                            String emojiName)
      • removeReaction

        boolean removeReaction​(String channelId,
                               String timestamp,
                               String emojiName)
        Remove an emoji reaction to a message.
        Parameters:
        channelId - - Slack's internal channel id (i.e. what's returned in a `chat.postMessage` response)
        timestamp - - Timestamp identifying the message
        emojiName - - The name of the emoji to add in reaction to the message (no colons)
        Returns:
        boolean indicating whether the API request succeeded
      • getResponseString

        String getResponseString()