I ended up here →
fetch("https://api.pushengage.com/apiv1/notifications", {
method: 'post',
headers: {
Api_key: "xxxxxxx",
"Content-Type": "application/x-www-form-urlencoded"
},
body: "notification_title=this is title of notification¬ification_message=this is message of notification¬ification_url=https://ajithkrr.wixsite.com/xxxxx&image_url=xxxxx.jpg"
})
.then((httpResponse) => {
console.log(httpResponse);
})
.catch((err) => {
console.log("err" + err);
});
Any idea what is wrong here ???