Package ru.bgcrm.plugin.slack.dao
Class SlackProto
java.lang.Object
ru.bgcrm.plugin.slack.dao.SlackProto
Slack API: https://api.slack.com/web
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
channelArchive
(String channel) channelCreate
(String name, boolean isPrivate) com.fasterxml.jackson.databind.JsonNode
channelHistory
(String channel, String oldest) void
channelInviteUsers
(String channel, List<String> users) com.fasterxml.jackson.databind.JsonNode
channelList
(boolean excludeArchived) void
channelSetPurpose
(String channel, String purpose) void
channelSetTopic
(String channel, String topic) void
channelUnArchive
(String channel) com.fasterxml.jackson.databind.JsonNode
com.fasterxml.jackson.databind.JsonNode
userList()
-
Constructor Details
-
SlackProto
-
-
Method Details
-
channelCreate
- Throws:
Exception
-
channelSetTopic
- Throws:
Exception
-
channelSetPurpose
- Throws:
Exception
-
channelArchive
- Throws:
Exception
-
channelUnArchive
- Throws:
Exception
-
channelInviteUsers
- Throws:
Exception
-
userList
- Throws:
Exception
-
chatPostMessage
public com.fasterxml.jackson.databind.JsonNode chatPostMessage(String channel, String text, String username, Map<Integer, FileInfo> attachments) throws Exception- Throws:
Exception
-
channelList
public com.fasterxml.jackson.databind.JsonNode channelList(boolean excludeArchived) throws Exception - Throws:
Exception
-
channelHistory
public com.fasterxml.jackson.databind.JsonNode channelHistory(String channel, String oldest) throws Exception - Throws:
Exception
-