ExMicrosoftTeams.Base behaviour (ex_microsoft_teams v0.1.2)

Link to this section Summary

Link to this section Types

@type client() :: Tesla.Client.t()
@type message() :: String.t()
Link to this type

webhook_url()

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

Link to this section Callbacks

Link to this callback

client(webhook_url)

@callback client(webhook_url()) :: client()
Link to this callback

notify(client, message)

@callback notify(client(), message()) :: {:ok, String.t()} | {:error, String.t()}
Link to this callback

send_message(webhook_url, message)

@callback send_message(webhook_url(), message()) ::
  {:ok, String.t()} | {:error, String.t()}