【发布时间】:2014-02-27 02:32:57
【问题描述】:
我试图从已禁用 Google 文档的帐户运行此应用。
function doGet() {
var app = UiApp.createApplication();
var button = app.createButton('Click Me');
app.add(button);
var label = app.createLabel('The button was clicked.')
.setId('statusLabel')
.setVisible(false);
app.add(label);
var handler = app.createServerHandler('myClickHandler');
handler.addCallbackElement(label);
button.addClickHandler(handler);
return app;
}
function myClickHandler(e) {
var app = UiApp.getActiveApplication();
var label = app.getElementById('statusLabel');
label.setVisible(true);
app.close();
return app;
}
我无法运行此代码,它不需要/使用 Google 文档权限(在 OAuth 屏幕中确认),但我仍然收到一条错误消息:
“很抱歉,您无权访问 Google 电子表格。 请联系您的域管理员以获得访问权限。”
【问题讨论】:
标签: google-apps-script google-drive-api