google-sheets - 是否可以使用 sheet.spreadsheets v4 将空白表添加到谷歌电子表格?
问题描述
当前的 api 是https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.sheets/copyTo
这是一种解决方法,因为我必须先复制现有工作表,然后在使用它之前清除其内容。
Google App Script 具有 InsertSheet,但在 sheet v4 api 中缺失。为什么谷歌团队会决定不做这么简单的一个?
解决方案
好吧,这不是直截了当的。但是答案是在工作表操作的批处理更新中 https://developers.google.com/sheets/api/samples/sheet#add_a_sheet
推荐阅读
- php - 如何使用 PhpMailer 在回复邮件中发送 gmail 线程 ID
- php - 安装库时找不到php composer类
- reactjs - 如何在图像滑块中使用系统图像而不是 React Native 中的链接
- c# - 如何在 Selenium 中打开新标签页
- php - Post 方法的 MethodNotAllowedHttpException .Get 和 Head 支持
- node.js - 无法在 hello.cc 中打开源文件“node.h”
- c++ - C++20 constexpr 容器将如何工作?
- django - Django查看单元测试与自定义模板标签冲突
- wpf - 更新 viewModel 时失去焦点
- angular - Ionic:如何使用无限滚动显示联系人列表