Database Webhook with body
Is there any way to send a body with Database Webhooks?
I'm trying to trigger OneSignal with it which uses the following curl command but I get stuck at the "data-binary" part.
“
Any ideas?
I'm trying to trigger OneSignal with it which uses the following curl command but I get stuck at the "data-binary" part.
“
curl --include \
--request POST \
--header "Content-Type: application/json; charset=utf-8" \
--header "Authorization: Basic ZjlhNTzgxZmFh" \
--data-binary "{\"app_id\": \"b27055a1-d5c9-4d52-a103-e39998abc056\",
\"contents\": {\"en\": \"Someone likes you, check it out.\"},
\"headings\": {\"en\": \"New like\"},
\"channel_for_external_user_ids\": \"push\",
\"include_external_user_ids\": [\"a32139cd-1209-4f47-beb7-5fb4b29ec027\"]}" \
https://onesignal.com/api/v1/notifications
“Any ideas?