Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Elixir library for Standard Webhooks

Example

Verifying a webhook payload:

StandardWebhooks.verify(webhook_payload, plug_conn, webhook_secret)

Note: Plug contains the request headers.

Signing a webhook

StandardWebhooks.sign(webhook_id, webhook_timestamp, webhook_payload, webhook_secret)

Development

Installation

The package can be installed by adding standard_webhooks to your list of dependencies in mix.exs:

def deps do
  [
    # ... your other deps
    {:standard_webhooks, "~> 0.1.0"}
  ]
end

Then run:

mix deps.get

Elixir Console

iex -S mix

Running Tests

Simply run:

mix test

Code Quality

mix quality