Transmitly (transmitly v1.0.1)

Copy Markdown View Source

Dependency-light Elixir client for the Transmitly email API.

tx = Transmitly.Client.new(System.fetch_env!("TRANSMITLY_API_KEY"))

accepted =
  Transmitly.Client.send_email(tx, %{
    "from" => "Notify <notify@mail.acme.com>",
    "to" => ["ada@example.net"],
    "subject" => "Your workspace is ready",
    "html" => "<p>Welcome.</p>"
  })

Summary

Functions

Verify a webhook delivery. Pass the raw request body, the Transmitly-Signature header and the endpoint signing secret.

Functions

verify_webhook(raw_body, signature_header, secret, tolerance \\ 300)

Verify a webhook delivery. Pass the raw request body, the Transmitly-Signature header and the endpoint signing secret.