slack_webhook v0.1.0 SlackWebhook

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_webhook, :url, "https://hooks.slack.com/services/*/*/*"

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

Functions

async_send(msg)

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

async_send(msg, url)

Sends asynchronous message to selected webhook url.

send(msg)

Sends message to default channel.

send(msg, url)

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