https://github.com/madhurjain/notifyhub
Standalone Notification Routing Service [mock]
https://github.com/madhurjain/notifyhub
Last synced: 2 months ago
JSON representation
Standalone Notification Routing Service [mock]
- Host: GitHub
- URL: https://github.com/madhurjain/notifyhub
- Owner: madhurjain
- Created: 2015-06-04T22:34:49.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-14T23:37:15.000Z (almost 10 years ago)
- Last Synced: 2025-01-01T22:43:36.155Z (4 months ago)
- Language: Go
- Size: 531 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## NotifyHub
Standalone web service which accepts notifications as JSON and routes to APN or GCM Push Notification Services.
More notification services can be added by implementing the broker's `Service` interface.
#### Sample
`POST` below JSON to `/notify` endpoint
```json
{
"apn": {
"tokens": ["0a24de", "0a24de"],
"alert": "testing an apn",
"badge": 1,
"sound": "bingbong.aiff"
},
"gcm": {
"registration_ids": ["ab1d2c", "fe45d9"],
"title": "testing gcm",
"body": "message body",
"tag": "popup"
}
}
```