Programmatically get a Spreadsheet “Publish[ed] on the web”

 ̄綄美尐妖づ 提交于 2019-12-31 01:54:22

问题


For the time being I believe this is a real wall I'm hitting my head on, but let's try:

Is there any way to programmatically set a spreadsheet to "Publish[ed] on the web" via GAS, or using any of the Google APIs (Google Spreadsheets, Google Docs List, etc.) and UrlFetch?

The goal is to access the sheet feed anonymously.

Please note that it is possible to make a sheet "public" (through the Google Docs List: it's a "sharing" option), or using GAS setAnonymousAccess() I think, but as far as I know, not "published", which is a different cup of tea (it's set manually through "File->Publish on the Web"). A "public" sheet has no feed, and a "published" one (it does not even need to be "public") has one.

Thanks.


回答1:


You can do this using the Drive API see:

https://developers.google.com/drive/v2/reference/revisions



来源:https://stackoverflow.com/questions/13016395/programmatically-get-a-spreadsheet-published-on-the-web

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!