首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何使用Drive API获取Google电子表格中的工作表列表(名称和"gid")?

如何使用Drive API获取Google电子表格中的工作表列表(名称和"gid")?
EN

Stack Overflow用户
提问于 2015-09-18 08:56:02
回答 1查看 5.2K关注 0票数 20

我正在尝试使用Google Drive API (Python)下载电子表格文件的一些标签。gids信息是否在文件的元数据中?我尝试做的是(这可能是不正确的,请建议:):

file_metadata = self.service.files().get(file_id=file_id).execute()
# in the following line, how can I get a download url with a gid (a tab in a spreadsheet file)
download_url = file_metadata.get('exportLinks')['text/csv']
# download the file.

谢谢:)

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32642244

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档