norkunas/onesignal-php-api

Onesignal ID differences

Closed this issue · 2 comments

Apology for this simple question, but where can I get the notificationId when I want to call an Api to GET notification.

curl --include \
     --header "Authorization: Basic NGEwMGZmMjItY2NkNy0xMWUzLTk5ZDUtMDAwYzI5NDBlNjJj" \
 https://onesignal.com/api/v1/notifications/{notificationId}?app_id={appId}

When you send notification onesignal responds with notification ID.
Also you can call https://onesignal.com/api/v1/notifications?app_id=:app_id&limit=:limit&offset=:offset to get notifications list and then call your endpoint to get notification data which is not included in the list.

yeah I see it. Thanks @norkunas ! Appreciate your fast reply!