Chronicle.WebHooks.Target (cratis_chronicle v1.0.2)

Copy Markdown View Source

Represents the delivery target for a webhook.

Summary

Types

authorization()

@type authorization() ::
  {:basic, %{username: String.t(), password: String.t()}}
  | {:bearer, %{token: String.t()}}
  | {:oauth,
     %{authority: String.t(), client_id: String.t(), client_secret: String.t()}}
  | nil

t()

@type t() :: %Chronicle.WebHooks.Target{
  authorization: authorization(),
  headers: %{optional(String.t()) => String.t()},
  url: String.t()
}