【发布时间】:2020-09-30 19:21:49
【问题描述】:
我尝试使用this 在我的 Google 表格中添加列。但我总是收到错误UnhandledPromiseRejectionWarning: TypeError: doc.updateDimensionProperties is not a function
这是我的代码:
const doc = new GoogleSpreadsheet('google-id');
async function updateTable(token){
await doc.useServiceAccountAuth(require('./credentials.json'));
await doc.updateDimensionProperties("COLUMNS", 5, 1);
}
【问题讨论】:
标签: javascript node.js google-sheets