问题
I'm working on the Google Calendar conferencing add-ons implementation and found some problems. I follow the documentation to execute the sample code, but it does not work as expected.
From my point of view, my manifest file is complete, but when I try to publish the Calendar conferencing add-on from the 'Deploy from manifest' link, it opens my google calendar, but it does not show my conferencing as it shows the Hangout and Uberconference for example.
I was expecting some log messages on my entry point function in Stackdriver, but even that is not working. Do you have any clues where I should start my investigation? Below is my manifest file and also my createConference function definition.
{
"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();
}
回答1:
You need to be whitelisted to develop and debug google calendar plugins by Google.
来源:https://stackoverflow.com/questions/53887856/unable-to-implement-third-party-google-calendar-conferencing-add-on