View Source Squeeze.ExpoNotifications (OpenPace v0.0.1)

Provides a basic HTTP interface to allow easy communication with the Exponent Push Notification API, by wrapping Tesla.

examples

Examples

Requests are made to the Exponent Push Notification API by passing in a Map into one of the Notification module's functions. The correct URL to the resource is inferred from the module name.

ExpoNotifications.push_list(messages)
{:ok, %{"status" => "ok", "id" => "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"}}

Items are returned as instances of the given module's struct. For more details, see the documentation for each function.

Link to this section Summary

Link to this section Functions