“Publish to the web” for Document in Google Apps Script?

前端 未结 1 1968
野性不改
野性不改 2021-01-15 12:08

Is there any plan to provide Google Apps script capability for the \"Files | Publish to the web...\" menu item in a google Document?

This has been asked before, but

相关标签:
1条回答
  • 2021-01-15 13:04

    It is not possible directly with GAS. However, using the Document List API and URLFetch with oAuth, you can, in theory make a document public on the web. Publish to the web option, per se, isn't available though.

    Please see the following links for information and help

    • How do I get an access token using UrlFetchApp with GAS

    • https://developers.google.com/google-apps/documents-list/#sharing_resources_with_the_public_the_rest_of_the_internet

    0 讨论(0)
提交回复
热议问题