Safe Haskell | None |
---|---|
Language | Haskell2010 |
Firebase Cloud Messaging google client. https://firebase.google.com/docs/cloud-messaging/concept-options#notifications_and_data_messages
Synopsis
- fcmCallJSON :: ToJSON req => ByteString -> req -> IO FCMResult
- fcmJSONRequest :: ByteString -> ByteString -> Request
Documentation
:: ToJSON req | |
=> ByteString | authorization key |
-> req | FCM JSON message, a typed model or a document object, see |
-> IO FCMResult |
Makes an FCM JSON request, expects a JSON response. https://firebase.google.com/docs/cloud-messaging/http-server-ref#send-downstream
:: ByteString | authorization key |
-> ByteString | JSON POST data |
-> Request |
Constructs an authenticated FCM JSON request, body and additional parameters such as proxy or http manager can be set for a customized HTTP call.