-
Notifications
You must be signed in to change notification settings - Fork 36
/
team.clj
31 lines (27 loc) · 927 Bytes
/
team.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
(ns clj-slack.team
(:require [clj-slack.core :refer [slack-request stringify-keys]]))
(defn access-log
"Gets the access logs for the current team.
Optional arguments are:
- count: number of items to return per page
- page: page number of results to return"
([connection]
(access-log connection {}))
([connection optionals]
(->> optionals
stringify-keys
(slack-request connection "team.accessLogs"))))
(defn info
"Gets information about the current team."
[connection]
(slack-request connection "team.info"))
(defn integration-log
"This method lists the integration activity logs for a team,
including when integrations are added, modified and removed.
This method can only be called by Admins."
([connection]
(integration-log connection {}))
([connection optionals]
(->> optionals
stringify-keys
(slack-request connection "team.integrationLogs"))))