XataX
Xata2y ago
Matthew

hi, why i can't insert record using

hi, why i can't insert record using fetch?

function test() {
const payload = {
wallet_id: "string"
};

const options = {
method: 'POST',
headers: {
Authorization: 'Bearer key',
'Content-Type': 'application/json'
},
body: payload
};

try {
const response = UrlFetchApp.fetch('linklink', options);
Logger.log(response.getContentText());
} catch (e) {
Logger.log("Error: " + e.message);
}
}

and after null
image.png
Was this page helpful?