[英]Authorize OAuth in Spreadsheet with Google Apps Script?
I have a script which uses OAuth. 我有一个使用OAuth的脚本。
When I run the function in the Script Editor, I get the authorize popup and it works fine. 当我在脚本编辑器中运行该函数时,我获得了授权弹出窗口,它工作正常。 But when I run it in the Spreadsheet, nothing happens. 但是当我在电子表格中运行它时,没有任何反应。
I'm guessing it's something to do with the callback URL? 我猜它与回调网址有关? It's set to script.google.com
in the service's ( Xero ) API settings, but Spreadsheets is at docs.google.com
. 它在服务的( Xero )API设置中设置为script.google.com
,但Spreadsheets位于docs.google.com
。 I tried setting it to docs.google.com
as well, but still nothing happens. 我也尝试将其设置为docs.google.com
,但仍然没有任何反应。
How do I ask for authorization in the Spreadsheet itself without having to do it in the Script Editor? 如何在电子表格中请求授权而无需在脚本编辑器中进行授权?
There is an open issue (677) on that for quite a while... we are all hoping for a solution other than having to open the script editor. 有一个未解决的问题 (677)...我们都希望除了必须打开脚本编辑器之外的解决方案。
I know it doesn't change anything for you in this case but at least you know you're not alone ;) 我知道在这种情况下它不会改变任何东西,但至少你知道你并不孤单;)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.