Slack.Web.Client behaviour (SlackKit v0.25.0-alpha.0)

View Source

Defines a custom client for making calls to Slack Web API.

Summary

Callbacks

Returned value is passed directly to caller of generated Web API module/functions. Can be any term.

Types

body()

@type body() :: form_body() | multipart_form_body()

form_body()

@type form_body() :: {:form, Keyword.t()}

multipart_form_body()

@type multipart_form_body() :: {:multipart, [tuple(), ...]}

url()

@type url() :: String.t()

Callbacks

post!(url, body)

@callback post!(url :: url(), body :: body()) :: term()

Returned value is passed directly to caller of generated Web API module/functions. Can be any term.