Gullintanni v0.1.0 Gullintanni.Webhook.Event

Utility module for extracting information from webhook events.

Summary

Types

The payload of an event

t()

The event type

Functions

Returns the payload from the event

Returns the value of the request header specified by key

Types

payload()
payload() :: map

The payload of an event

t()
t() :: Plug.Conn.t

The event type

Functions

get_payload(event)
get_payload(t) :: payload

Returns the payload from the event.

get_req_header(event, key)
get_req_header(t, String.t) :: String.t | nil

Returns the value of the request header specified by key.

Returns nil if the header was not found.