Chronicle.WebHooks.Target (cratis_chronicle v3.16.1)

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(),
       optional(:scope) => String.t()
     }}
  | nil

t()

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