I'm trying to update a given spreadsheet cell, using node.js googleapis v4 and authorizing with a JWT client.
Reading works fine, but I cannot understand how to write:
new Promise((resolve, reject) => {
sheets.spreadsheets.values.update({
auth: this._auth,
spreadsheetId: this._metaData.spreadSheetId,
range: range,
valueInputOption: 'USER_ENTERED'
},(err, resp) => {
if (err) {
console.log('Data Error :', err)
reject(err);
}
resolve(resp);
});
});
How do I specify the data, and how do I pass it to the call?
I understand I should use a ValueRange object, but how?