https://github.com/dbackowski/onesignal-demo
OneSignal Push Notification Demo
https://github.com/dbackowski/onesignal-demo
Last synced: 4 months ago
JSON representation
OneSignal Push Notification Demo
- Host: GitHub
- URL: https://github.com/dbackowski/onesignal-demo
- Owner: dbackowski
- Created: 2016-11-11T16:04:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-11T16:31:39.000Z (over 9 years ago)
- Last Synced: 2025-05-21T09:55:56.534Z (about 1 year ago)
- Language: HTML
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OneSignal Push Notification Demo
Simple example of OneSignal Push Notification SDK
## Send Example Push Notification
```
curl --include \
--request POST \
--header "Content-Type: application/json; charset=utf-8" \
--header "Authorization: Basic ZjhmZjkxNmItZWY3MC00ZDA4LWFhMDgtNzY3MzRjZTQ0ZTc5" \
--data-binary "{\"app_id\": \"91e56e15-5049-4f98-b331-1a941688d454\",
\"contents\": {\"en\": \"English Message\"},
\"filters\": [{\"field\": \"tag\", \"key\": \"id\", \"relation\": \"=\", \"value\": \"1\"}]}" \
https://onesignal.com/api/v1/notifications
```