【发布时间】:2021-05-30 10:41:54
【问题描述】:
我在 php 中使用 google sheet API 来创建新工作表,它正在创建新工作表,但我希望它可以公开编辑,但它只能由特定的 gmail 帐户访问。有所有者,
那么有可能使用 php 中的 API 创建一个 google sheet 并允许它公开编辑吗?
提前谢谢你。
【问题讨论】:
标签: php google-sheets google-api google-api-client
我在 php 中使用 google sheet API 来创建新工作表,它正在创建新工作表,但我希望它可以公开编辑,但它只能由特定的 gmail 帐户访问。有所有者,
那么有可能使用 php 中的 API 创建一个 google sheet 并允许它公开编辑吗?
提前谢谢你。
【问题讨论】:
标签: php google-sheets google-api google-api-client
为此:
fileId 参数,用于Permissions: create
Request body 中指定
{
"role": "writer",
"type": "anyone"
}
【讨论】: