← go back

I put the following into an ai generator

//a function that makes a POST request to https://api.wasteof.money/ with the body {content:"e",repost:null} in javascript

It returned this:

window.onload=function(){ var jsonData={"jsonrpc":"2.0","method":"chunk","params":[[{"content":"e","repost":null},{"content":"f","repost":null},{"content":"g","repost":null}]],"id":1}; var scriptUrl="https://api.wasteof.money/api/1.0/wastemanagement/posts"+"?key=your_api_key"+"&type=json&api_id=1"+"&id=2"; var script=document.createElement('script'); script.src=scriptUrl; script.id="script"; document.body.appendChild(script); function makeChunkRequest(script) { return new Promise(
Feb 2, 2022, 10:03 PM
3 0 1

Comments