How do I format this correctly?
var params = {
"range":"Sheet1!A4:C4",
"majorDimension": "ROWS",
"values": [
["Hello World","123", "456"]
],
}
Then send it using POST like :
var xhr = new XMLHttpRequest();
xhr.open(method, url);
xhr.setRequestHeader('Authorization', 'Bearer ' + access_token);
xhr.onload = requestComplete;
xhr.send(params);
I know Im going to encounter errors because there's a proper way of formatting my "request body". It looks like a mixture of array and JSON so Im asking for your help how to format it correctly.