Hi I've a small tool to edit a Google Sheet using the API v4. I can read the data from said sheet but I can't append anything.
$.ajax({
url: 'https://sheets.googleapis.com/v4/spreadsheets/' +
'SPREADSHEETID' +
'/values/' + 'TAB' +
'?alt=json&key=KEY',
type: 'POST',
data: {
majorDimension: 'ROWS',
range: 'A1:A2',
values: '32'
},
dataType: 'jsonp',
success: function (data) {
console.log(data);
}
});
This is the code I'm using, but I keep getting the following error: Invalid JSON payload received. Unknown name \"values\": Cannot bind query parameter. Field 'values' could not be found in request message."