简体   繁体   English

如何将google apps脚本发布到公共云?

[英]How to publish google apps script to cloud for public?

I have a apps script that uses bigquery service to fetch data from my bigquery account and builds visualizations/tables etc. I publish the app with following options Execute App as: User accessing web app Who has access to this app: Anyone 我有一个应用程序脚本,它使用bigquery服务从我的bigquery帐户获取数据并构建可视化/表格等。我使用以下选项发布应用程序执行应用程序:用户访问Web应用程序谁有权访问此应用程序:任何人

  1. When I open the link (one ending in exec not dev) in chrome incognito, I expect it to show the web app but it asks for google credentials. 当我在Chrome隐身中打开链接(一个以exec而非dev开头)时,我希望它显示网络应用程序,但它要求谷歌凭据。
  2. When I entering credentials of my other (different from the one hosting the project) account, I get a permissions error. 当我输入我的其他(不同于托管项目的帐户)帐户的凭据时,我收到权限错误。
  3. I added this other account from my primary one under permissions option of google console - even that wasn't enough. 我在google控制台的权限选项下添加了我的主帐户中的其他帐户 - 即使这还不够。
  4. I had to create a dummy project as this other user to accept the invitation from my primary account. 我不得不创建一个虚拟项目作为其他用户接受来自我的主帐户的邀请。 After that the app showed up on this other account. 之后,该应用程序出现在另一个帐户上。

My question is, how do I publish my app for the consumers (even public) of this info without them having to create dummy project/accept my invite etc? 我的问题是,如何在不创建虚拟项目/接受我的邀请等的情况下为消费者(甚至是公众)发布我的应用程序?

Thanks 谢谢

You have two errors: 你有两个错误:
1) Publish to run as you not the user, and 1)发布到不是用户运行,
2) make it anonymous access. 2)使其匿名访问。 * *
People might consume your daily/per second quotas thou. 人们可能会消耗你的每日/每秒配额。

(*) anonymous access option might not be present if the google apps administrator disabled anonymous sharing in the console. (*)如果Google Apps管理员在控制台中禁用了匿名共享,则可能不会显示匿名访问选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM