Elixir wrapper for the OneSignal API.
Documentation can be found at https://hexdocs.pm/ex_signal.
- Add ex_signal to your list of dependencies in mix.exs:
def deps do
[{:ex_signal, "~> 0.3.0"}]
end
- Add this to your config.exs:
config :ex_signal,
app_id: "your app id",
api_key: "your api key"
To make testing easier, you can also provide your own ExSignal.Client
implementation:
# test.exs
config :ex_signal, client: ClientMock