content/hifi-content/sean/testy/google docs testy/testy.js
2022-02-14 02:04:11 +01:00

8 lines
No EOL
374 B
JavaScript

function auditToGoogle() {
const url = "https://script.google.com/a/highfidelity.io/macros/s/AKfycbwGHKmPtp7L6mjXZq_1uGys-ig1B4PKnUIjia2rdtTNuRebiPiZ/exec?type=test"
fetch(url, {
method: 'GET'
}).then(res => res.json())
.then(response => console.log('Success:', JSON.stringify(response)))
.catch(error => console.error('Error:', error));
}