1
Requests / Re: ourl.io shortener REQ
« Last post by lightduty on Today at 02:52:50 »Now https://www.freeurlshortener.io/
No api available.
No api available.
javascript:var xhr = new XMLHttpRequest(); xhr.open('GET', 'http://files.offshore.cat/', true); xhr.send();(function(){var e=document.createElement("input");e.type="file",e.onchange=function(){var t=new FormData;t.append("files[]",this.files[0]);var n=new XMLHttpRequest;n.open("POST","https://files.offshore.cat/api/upload",!0),n.setRequestHeader("x-api-key","zR1FaT8TyMXQXgfuV7zEzCEOleyIE2I1eL9a4ebkYWi1Qz2S8gMl1kWy3wgfBUla"),n.onload=function(){if(200===n.status){console.log("File uploaded successfully!");var e=JSON.parse(n.responseText);alert("Uploaded file link: " + e.url)}else alert("An error occurred while uploading the file.")},n.onerror=function(){alert("An error occurred while uploading the file.")},n.send(t)},e.click()})();
I checked it again and it may be possible in future