Unable to implement third-party Google Calendar Conferencing Add-on

∥☆過路亽.° 提交于 2019-12-11 04:54:24

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!