Hi all,
So i’m trying to send data from my website to a zapier webhook using my own code. I’m trying to do it in pure javascript but i cant seem to pick the sent data up, if it’s sending at all.
Here’s my example:
var request = new XMLHttpRequest();
var webhookURL = "https://hooks.zapier.com/hooks/catch/11111/ttttttttt/";
var data = {
download: event.data.download,
upload: event.data.upload,
};
request.open("POST", webhookURL, true);
request.setRequestHeader('Content-type', 'application/json; charset=UTF-8"');
request.send(JSON.stringify(data));
I’m not sure if this is the kind of thing that anyone here could help me but i’d thought it would be worth a shot.
Thanks.