Current section
Files
Jump to
Current section
Files
lib/ifttt_webhook.ex
defmodule IftttWebhook do
use Application
@doc false
def start(_type, [api_key: api_key]) do
children = [
{IftttWebhook.Server, [api_key]}
]
Supervisor.start_link(children, strategy: :one_for_one)
end
@doc """
Sends an event to the webhook including the values given
"""
@spec send_async(binary, list) :: :ok
def send_async(event, values) when is_list(values) do
IftttWebhook.Server.send_async(event, values)
end
end