You can use the following curl commands to interact with the API:
curl -X POST
Warning: Undefined variable $base_url in /home/indexscreener/schoolapi.indexscreener.in/templates/notifications/fcm.html on line 30
app/notifications/register \ -H "Content-Type: application/json" \ -d '{ "user_type": "Staff", "user_id": "your_user_id", "device_id": "your_device_id", "fcm_token": "your_fcm_token", "device_type": "Android", "device_info": "optional_device_info" }'
curl -X POST
Warning: Undefined variable $base_url in /home/indexscreener/schoolapi.indexscreener.in/templates/notifications/fcm.html on line 44
app/notifications/remove \ -H "Content-Type: application/json" \ -d '{ "user_id": "your_user_id", "device_id": "your_device_id" }'
curl -X POST
Warning: Undefined variable $base_url in /home/indexscreener/schoolapi.indexscreener.in/templates/notifications/fcm.html on line 54
app/notifications/send \ -H "Content-Type: application/json" \ -d '{ "user_type": "Staff", "user_ids": ["user_id_1", "user_id_2"], "message": { "title": "Test Notification", "body": "This is a test notification" }, "data": { "key1": "value1", "key2": "value2" } }'