以HTML格式下载Google文档电子表格 [英] Download a Google Docs Spreadsheet as HTML

查看:124
本文介绍了以HTML格式下载Google文档电子表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google Drive api和php来做各种各样美妙的事情,但却无法下载HTML格式的电子表格。我可以使用getExportLinks()方法以各种格式下载它,但我想要的只是表格中的文本,而不是docx或ods中的格式化文件。

Im using the Google Drive api with php to do all sorts of wonderful things but getting stuck with downloading a Spreadsheet in HTML format. I can use the getExportLinks() method to download it in its various formats, but all i want is the text from the sheet and not a formatted file in docx or ods.

通过使用/ feeds / download / spreadsheets / Export?exportFormat = html& format = html& key = ID网址,可以使用google docs api。但现在正在重定向,当我使用它。

This was possible with the google docs api by using the /feeds/download/spreadsheets/Export?exportFormat=html&format=html&key=ID url. But currently being redirected when I use it.

是否有可能使用驱动器API下载电子表格为html?

Is it possible to download a spreadsheet as html using the drive api?

推荐答案

只需将exportLink中的exportformat更改为html。

Just change the exportformat in the exportLink to html.

这篇关于以HTML格式下载Google文档电子表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆