# ifttt_webhook
A library to call IFTTT's webhooks and send events.
[![hex.pm version](https://img.shields.io/hexpm/v/ifttt_webhook.svg?style=flat)](https://hex.pm/packages/ifttt_webhook)
[![Build Status](https://travis-ci.org/domnikl/ifttt_webhook.svg?branch=master)](https://travis-ci.org/domnikl/ifttt_webhook)
## Installation
The package can be installed by adding `ifttt_webhook` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:ifttt_webhook, "~> 0.2"}
]
end
```
## Usage
Add the `:ifttt_webhook` application in your `mix.exs` file and configure the API key in your application's config:
```elixir
config :ifttt_webhook, api_key: "<your-api-key-goes-here>"
```
To send events call `IftttWebhook.send_async/2` like this:
```elixir
IftttWebhook.send_async("my-event", [13.0, 12.1, 42.1])
```
Further Documentation can be found at [https://hexdocs.pm/ifttt_webhook](https://hexdocs.pm/ifttt_webhook).