View Source Notifiex (Notifiex v1.2.0)
The main module for Notifiex.
Link to this section Summary
Functions
send
helps in sending a notification through the specified service.
send_async
helps in sending a notification in an asynchronous way.
send_async_multiple
helps in sending multiple notifications in an asynchronous way.
send_multiple
helps in sending multiple notifications in a synchronous way.
Returns a Keyword list of services.
Callback implementation for Application.start/2
.
Link to this section Types
Link to this section Functions
send
helps in sending a notification through the specified service.
Example:
> Notifiex.send(:slack, %{text: "Notifiex is cool! 🚀", channel: "general"}, %{token: "SECRET"})
send_async
helps in sending a notification in an asynchronous way.
Example:
> Notifiex.send_async(:slack, %{text: "Notifiex is cool! 🚀", channel: "general"}, %{token: "SECRET"})
send_async_multiple
helps in sending multiple notifications in an asynchronous way.
Example:
notifs = [
slack_test: {:slack, %{text: "Notifiex is cool! 🚀", channel: "general"}, %{token: "SECRET"}},
discord_test: {:discord, %{content: "Notifiex is cool! 🚀"}, %{webhook: "SECRET"}}
]
Notifiex.send_async_multiple(notifs)
send_multiple
helps in sending multiple notifications in a synchronous way.
Example:
notifs = [
slack_test: {:slack, %{text: "Notifiex is cool! 🚀", channel: "general"}, %{token: "SECRET"}},
discord_test: {:discord, %{content: "Notifiex is cool! 🚀"}, %{webhook: "SECRET"}}
]
Notifiex.send_multiple(notifs)
@spec services() :: keyword()
Returns a Keyword list of services.
Callback implementation for Application.start/2
.