我正在研究Google日历会议附加组件的实现,发现了一些问题。我按照文档执行示例代码,但是它无法按预期工作。
从我的角度来看,我的清单文件是完整的,但是当我尝试通过“从清单中部署”链接发布日历会议加载项时,它会打开我的Google日历,但不会显示为例如,它显示了环聊和Uberconference。
我期望Stackdriver的入口点功能上出现一些日志消息,但即使这样也无法正常工作。 您有什么线索可以开始调查吗? 以下是我的清单文件以及我的createConference函数定义。
{
"dependencies": {
"enabledAdvancedServices": [{
"userSymbol": "Calendar",
"serviceId": "calendar",
"version": "v3"
}],
"libraries": [{
"userSymbol": "OAuth2",
"libraryId": "1B7FSrk5Zi6L1rSxxTDgDEUsPzlukDsiaserTMogajsHhGBzBkMun4iDF",
"version": "21"
}]
},
"webapp": {
"access": "ANYONE",
"executeAs": "USER_ACCESSING"
},
"exceptionLogging": "STACKDRIVER",
"oauthScopes": [
"https://www.googleapis.com/auth/calendar.addons.execute",
"https://www.googleapis.com/auth/calendar.events.readonly",
"https://www.googleapis.com/auth/calendar.settings.readonly",
"https://www.googleapis.com/auth/script.external_request",
"https://www.googleapis.com/auth/script.scriptapp",
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/script.external_request"
],
"urlFetchWhitelist": [
"https://circuitsandbox.net/"
],
"calendar": {
"name": "My Web Conferencing",
"logoUrl": "https://dl.dropboxusercontent.com/s/sgkt743sv30rid1/logo-circuit-100x100.png?dl=0",
"createSettingsUrlFunction": "createSettingsUrl",
"conferenceSolution": [{
"id": 1,
"name": "My Web Conference",
"logoUrl": "https://dl.dropboxusercontent.com/s/sgkt743sv30rid1/logo-circuit-100x100.png?dl=0",
"onCreateFunction": "createConference"
},
{
"id": 2,
"name": "My Recorded Web Conference",
"logoUrl": "https://dl.dropboxusercontent.com/s/sgkt743sv30rid1/logo-circuit-100x100.png?dl=0",
"onCreateFunction": "createConference"
}
]
}
function createConference(arg) {
var dataBuilder = ConferenceDataService.newConferenceDataBuilder();
var authenticationUrl = 'https://adfs01.circuitsandbox.net/';
var error = ConferenceDataService.newConferenceError()
.setConferenceErrorType(
ConferenceDataService.ConferenceErrorType.AUTHENTICATION)
.setAuthenticationUrl(authenticationUrl);
dataBuilder.setError(error);
return dataBuilder.build();
}
答案 0 :(得分:0)
您需要被列入白名单才能开发和调试Google的Google日历插件。