package slack

  1. Overview
  2. Docs

Module Slack_lib.Api_localSource

Module for mocking test requests to slack--will output on Stdio

Sourceval cwd : string
Sourceval cache_dir : string
Sourceval with_cache_file : string -> (string -> 'a) -> ('a, [> `Other of string ]) result Lwt.t

return the file with a function f applied unless the file is empty; empty file:this is needed to simulate 404 returns from github

Sourceval default_post_message_res : Slack_t.post_message_res
Sourceval default_update_message_res : Slack_t.update_message_res
Sourceval default_files_res : Slack_t.file
Sourceval default_files_upload_res : Slack_t.files_upload_res
Sourceval send_message : ctx:'a -> msg:Slack_j.post_message_req -> (Slack_t.post_message_res, 'b) result Lwt.t
Sourceval send_message_webhook : ctx:'a -> url:string -> msg:Slack_j.post_message_req -> (unit, 'b) result Lwt.t
Sourceval update_message : ctx:'a -> msg:Slack_j.update_message_req -> (Slack_t.update_message_res, 'b) result Lwt.t
Sourceval upload_file : ctx:'a -> file:Slack_j.files_upload_req -> (Slack_t.files_upload_res, [> `Other of string ]) result Lwt.t
Sourceval join_conversation : ctx:'a -> channel:Slack_t.conversations_join_req -> (Slack_j.conversations_join_res, [> `Other of string ]) result Lwt.t
Sourceval send_chat_unfurl : ctx:'a -> req:Slack_t.chat_unfurl_req -> (unit, 'b) result Lwt.t
Sourceval update_usergroup_users : ctx:'a -> usergroup:Slack_t.update_usergroups_users_req -> (Slack_j.update_usergroups_users_res, [> `Other of string ]) result Lwt.t
Sourceval get_replies : ctx:'a -> conversation:Slack_t.conversations_replies_req -> (Slack_j.conversations_replies_res, [> `Other of string ]) result Lwt.t
Sourceval get_conversations_info : ctx:'a -> conversation:Slack_t.conversations_info_req -> (Slack_j.conversations_info_res, [> `Other of string ]) result Lwt.t
Sourceval get_user : ctx:'a -> user:Slack_t.user_info_req -> (Slack_j.user_info_res, [> `Other of string ]) result Lwt.t
Sourceval list_usergroups : ctx:'a -> req:Slack_t.list_usergroups_req -> (Slack_j.list_usergroups_res, [> `Other of string ]) result Lwt.t
Sourceval list_usergroup_users : ctx:'a -> usergroup:Slack_t.list_usergroup_users_req -> (Slack_j.list_usergroup_users_res, [> `Other of string ]) result Lwt.t
Sourceval list_users : ctx:'a -> req:Slack_t.list_users_req -> (Slack_j.list_users_res, [> `Other of string ]) result Lwt.t
Sourceval send_auth_test : ctx:'a -> unit -> (Slack_t.auth_test_res, 'b) result Lwt.t
OCaml

Innovation. Community. Security.