使用 Zend Gdata API for PHP 获取工作表列表
我想列出所有工作表,其中包含工作表名称和 API 中用于引用工作表的“worksheetid”。
I want to list all the worksheets with the name of the sheet and the "worksheetid" which is used in the API to reference the sheet.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
下面是一个脚本,可用于输出特定电子表格的所有工作表及其 ID。它采用“name”的 URL 查询字符串,该字符串是您想要其工作表 id 的电子表格的名称(例如 name-of-file.php?name=myspreadsheet)
请注意,此脚本取决于您所在的 Zend 库文档根目录位于名为“library”的文件夹中。
Here is a script you can use to output all of the worksheets and their ids for a particular spreadsheet. It takes a URL query string of 'name' which is the name of the spreadsheet whose worksheets you want the ids of (e.g. name-of-file.php?name=myspreadsheet)
Note that this script depends on the Zend library being at your document root in a folder named 'library'.