Created
December 16, 2019 23:37
-
-
Save linkerzx/19d0e381bfd8d93ba3bb93fae2ac21df to your computer and use it in GitHub Desktop.
This file contains 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 sendClickStream(event_str){ | |
const uri = 'https://localhost' | |
const params = { | |
body: { | |
"contentData": btoa(event_str), | |
"Properties": {} | |
}, | |
method: "POST" | |
} | |
fetch(uri , params) | |
.then(data=>{return data.json()}) | |
.then(res=>{console.log(res)}) | |
.catch(error=>console.log(error)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment