README.md

# ifttt_webhook

A library to call IFTTT's webhooks and send events.

[![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.1"}
  ]
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).