functioncheckLicense(key, software, version) {constsecret='PUT_YOUR_SECRET_KEY';consttype='license';consturl=`https://<YOUR_DOMAIN>/api.php?secret=${secret}&type=${type}&key=${key}&product=${software}&version=${version}`;fetch(url).then(response => {if (!response.ok) {thrownewError('Network response was not ok'); }returnresponse.json(); }).then(data => {if (data.valid) {console.log("Success!"); } else {console.error("Incorrect."); } }).catch(error => {console.error('There was a problem with the fetch operation:', error); });}// Ejemplo de usocheckLicense('LICENSE_KEY','PRODUCT_NAME','VERSION_NUMBER');