This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function postDataToWebhook(data){ | |
//get the values needed from the passed in json object | |
var userName=data.name; | |
var userPlatform=data.platform; | |
var userEmail=data.email; | |
//url to your webhook | |
var webHookUrl="webhook_url"; | |
//https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest | |
var oReq = new XMLHttpRequest(); |