typescript - Google Firebase Cloud Functions 添加新的 Google 表格选项卡
问题描述
我正在尝试通过 Typescript 使用 Firebase Cloud Functions 在 Google 表格中添加一个新的“表格”选项卡。我使用教程 https://gist.github.com/CodingDoug/ffc4f050cc489a0280eb7f4cbe36af07作为参考。下面的代码显示了我希望它如何工作的示例。我怎样才能做到这一点,以便我可以使用 Firebase Cloud Functions 在 Google 表格中“创建”一个新的“表格”选项卡?
let values = [
[
'exampleData11','exampleData12'
], [
'exampleData21','exampleData22'
],
//...
];
const resource = {
values,
};
await authPromise
await sheets.spreadsheets.values.update({
auth: auth,
spreadsheetId: spreadsheetId,
// add sheet named 'exampleSheet'
range: 'exampleSheet',
valueInputOption: 'RAW',
resource,
})
解决方案
推荐阅读
- sql - 处理 AI Platform 批处理结果 BigQuery
- webpack - Webpack v4 长期支持?
- r - 使用 tidymodels 运行多个回归模型
- android - 无法使用证书 (.cer) 验证签名 XML
- angular - TypeError:无法读取未定义的属性'of'
- c# - 另一个“运行所选代码生成器时出错:”和“包还原失败。回滚包更改“(解决方案名称)
- html - 使用 CSS 在图像上居中对齐内容
- javascript - 慢速模式命令
- jenkins - github 操作 - 结帐操作中的问题
- reactjs - 他们有什么方法可以访问从 shell 脚本到 React JS 应用程序的参数吗?