slack_hook v0.2.1 SlackHook

Sends simple HTTP(S) request to Slack API to display short message on your channel. Remember to configure your webhook at config/config.exs:

  config :slack_hook, :url, "https://hooks.slack.com/services/*/*/*"

  config :slack_hook,
    default_url: "https://hooks.slack.com/services/*/*/*",
    urls: [some_name: "https://hooks.slack.com/services/*/*/*", other_name: "https://hooks.slack.com/services/*/*/*"]

Link to this section Summary

Functions

Sends asynchronous message to selected webhook url. Use when you want to "fire and forget" your notifications.

Sends asynchronous message to selected webhook url.

Sends message to default channel.

Sends message to selected webhook url. Use if your application uses more than one hook.

Link to this section Functions

Link to this function

async_send(msg)

Sends asynchronous message to selected webhook url. Use when you want to "fire and forget" your notifications.

Link to this function

async_send(msg, key, opts \\ %{})

Sends asynchronous message to selected webhook url.

Sends message to default channel.

Link to this function

send(msg, key, opts \\ %{})

Sends message to selected webhook url. Use if your application uses more than one hook.