Liking cljdoc? Tell your friends :D

oc.lib.slack

Make simple (not web socket) Slack Web API HTTP requests and extract the response.

Make simple (not web socket) Slack Web API HTTP requests and extract the response.
raw docstring

alert-paginationclj

(alert-pagination slack-response method & [parameters])
source

echo-messageclj

(echo-message user-token channel text)
(echo-message user-token channel initial-text reply-text)
(echo-message user-token channel timestamp :guard slack-timestamp? text)

Post a message to a Slack channel -or- a thread of a channel, impersonating the user that authored the message.

A thread is specified by its timestamp.

Optionally can include 2 text messages, the 2nd will be a reply to the first, creating a new thread.

Post a message to a Slack channel -or- a thread of a channel, impersonating the user that authored the message.

A thread is specified by its timestamp.

Optionally can include 2 text messages, the 2nd will be a reply to the first, creating a new thread.
sourceraw docstring

get-channelsclj

(get-channels token)
(get-channels token
              {exclude-archived :exclude_archived
               limit :limit
               cursor :cursor
               types :types
               :or {types (str "public_channel," "private_channel,"
                               "mpim," "im")
                    limit 3000
                    exclude-archived true}})
source

get-dm-channelclj

(get-dm-channel token user-id)
source

get-event-partiesclj

(get-event-parties app-token event-context)
source

get-team-infoclj

(get-team-info token)
source

get-user-infoclj

(get-user-info token user-id)
source

get-usersclj

(get-users token)
source

join-channelclj

(join-channel bot-token channel-id)
source

marker-charclj

source

message-webhookclj

(message-webhook webhook from message)

Send a message to a Slack webhook for monitoring/reporting purposes.

Send a message to a Slack webhook for monitoring/reporting purposes.
sourceraw docstring

post-attachmentsclj

(post-attachments bot-token channel attachments)
(post-attachments bot-token channel attachments text)

Post attachments as the bot.

Post attachments as the bot.
sourceraw docstring

post-blocksclj

(post-blocks bot-token channel blocks)
(post-blocks bot-token channel blocks text)

Post blocks as the bot.

Post blocks as the bot.
sourceraw docstring

post-messageclj

(post-message bot-token channel text)

Post a message as the bot.

Post a message as the bot.
sourceraw docstring

proxy-messageclj

(proxy-message bot-token channel text)
(proxy-message bot-token channel initial-text reply-text)
(proxy-message bot-token channel timestamp :guard slack-timestamp? text)

Post a message to a Slack channel -or- a thread of a channel, using the bot and mentioning the user that authored the message.

A thread is specified by its timestamp.

Optionally can include 2 text messages, the 2nd will be a reply to the first, creating a new thread.

Post a message to a Slack channel -or- a thread of a channel, using the bot and mentioning the user that
authored the message.

A thread is specified by its timestamp.

Optionally can include 2 text messages, the 2nd will be a reply to the first, creating a new thread.
sourceraw docstring

report-slack-errorclj

(report-slack-error body e)
(report-slack-error body e throw?)
source

slack-apiclj

(slack-api method params)
(slack-api method params options)
source

slack-reportclj

(slack-report e)
source

unfurl-post-urlclj

(unfurl-post-url user-token channel ts url-data)

Add data to the url when a Carrot url is posted in slack.

Add data to the url when a Carrot url is posted in slack.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close