I am trying to put a comment using NODEJS and the "Google Spread-Sheet" module, I have managed to write in cells, read, delete, but I can not put a comment in a cell, and the tutorials I see only teach discontinued forms, someone could help me? thank you very much.
const { GoogleSpreadsheet } = require('google-spreadsheet');
const creds = require('./googleSheetCredentials.json');
async function accessSpreadSheet() {
const doc = new GoogleSpreadsheet('XXXXXXXXXXXX');
await doc.useServiceAccountAuth(creds);
await doc.loadInfo();
const sheet = doc.sheetsByIndex[0];
await sheet.addRow({
Login: 'hello world', // column A
Date: '2020-01-01' // column B
});
const row = await sheet.getRows();
console.log(row);
//await sheet.addComment('2', 'Login', 'Hello world'); Doesn't work
}
accessSpreadSheet();