-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslack_api.mli
60 lines (47 loc) · 1.28 KB
/
slack_api.mli
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
(*
Client for the Slack API (incomplete)
https://api.slack.com/
For Esper, see setup instructions in `wolverine/slack/README.md`
*)
type 'a response = [ `OK of 'a | `Error of string ]
val app_auth_url :
?state:string ->
?team:Slack_api_teamid.t ->
client_id:string ->
scope:string ->
redirect_uri:string -> unit -> Uri.t
val users_identity :
Slack_api_t.auth ->
Slack_api_j.user_identity_response response Lwt.t
val auth_test : string -> unit response Lwt.t
val oauth_access :
client_id:string ->
client_secret:string ->
code:string ->
redirect_uri:string ->
Slack_api_j.auth response Lwt.t
val im_open :
string ->
Slack_api_userid.t ->
Slack_api_t.slack_channel response Lwt.t
val chat_post_message :
?attachments: Slack_api_j.attachments ->
?text: string ->
string ->
Slack_api_channel.t ->
Slack_api_t.post_message_response response Lwt.t
val reactions_add :
string ->
Slack_api_channel.t ->
Slack_api_ts.t -> string -> unit response Lwt.t
val reactions_remove :
string ->
Slack_api_channel.t ->
Slack_api_ts.t ->
string ->
unit response Lwt.t
val rtm_start :
?simple_latest:bool ->
?no_unreads:bool ->
?mpim_aware:bool -> string -> Slack_api_j.rtm_start_resp response Lwt.t
val event_of_string : string -> Slack_api_t.event