【文件属性】:
文件名称:google-spreadsheets-test:使用与Google Sheets api交互的php包的快速示例
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-03 00:30:13
PHP
使用Google Spreadsheets API的示例
这将使用库以及 。 示例代码在index.php 。
设置
在创建应用
在API和身份验证-> API下,可以访问该服务帐户上所需的API(驱动器API)
在“凭据”下创建一个
为此将json下载为service_account.json到此项目中
与该帐户共享具有编辑功能的电子表格
和composer install
在浏览器或命令行中加载index.php
该代码只是一些示例资料-如果您需要执行其他操作,请与一起使用。
您也可以直接使用Google Drive API,但它不提供访问表格API的抽象。 您必须通过组合curl请求来做到这一点。 :/
【文件预览】:
google-spreadsheets-test-master
----.gitignore(28B)
----README.md(1KB)
----index.php(2KB)
----composer.lock(4KB)
----composer.json(119B)