无法在清单文件中设置会议解决方案的密钥
Cannot set key of conference solution in manifest file
我无法在 GSuit 应用程序的清单文件中设置 "key" 属性
"conferenceSolution": [{
"onCreateFunction": "createConference",
"id": "messanger",
"name": "Some messanger",
"key": {
"type": "addOn"
},
"logoUrl": "https://logos.com/some/logo123.png"
}]
但是在推送时,我收到错误消息:
GaxiosError: "appsscript.json" has errors: Invalid manifest: unknown fields: [addOns.calendar.conferenceSolution[0].key]
at Gaxios._request (C:\Users\iyano\AppData\Roaming\npm\node_modules\@google\clasp\node_modules\gaxios\build\src\gaxios.js:85:23)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async OAuth2Client.requestAsync (C:\Users\iyano\AppData\Roaming\npm\node_modules\@google\clasp\node_modules\google-auth-library\build\src\auth\oauth2client.js:350:18)
如何在 Apps 脚本中使用会议数据创建活动的示例请求:
function myFunction() {
var calendarId = "primary";
var resource = {
"summary": "event with conference data",
"end": {
"date": "2020-04-10"
},
"start": {
"date": "2020-04-10"
},
"conferenceData": {
"createRequest": {
"requestId": "123",
"conferenceSolutionKey": {
"type": "eventNamedHangout"
}
}
}
};
var event=Calendar.Events.insert(resource, calendarId,{"conferenceDataVersion":"1"})
Logger.log(event.id);
}
如果是插件 - 我认为 type
应该是 addOn
而不是 eventNamedHangout
。
我无法在 GSuit 应用程序的清单文件中设置 "key" 属性
"conferenceSolution": [{
"onCreateFunction": "createConference",
"id": "messanger",
"name": "Some messanger",
"key": {
"type": "addOn"
},
"logoUrl": "https://logos.com/some/logo123.png"
}]
但是在推送时,我收到错误消息:
GaxiosError: "appsscript.json" has errors: Invalid manifest: unknown fields: [addOns.calendar.conferenceSolution[0].key]
at Gaxios._request (C:\Users\iyano\AppData\Roaming\npm\node_modules\@google\clasp\node_modules\gaxios\build\src\gaxios.js:85:23)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async OAuth2Client.requestAsync (C:\Users\iyano\AppData\Roaming\npm\node_modules\@google\clasp\node_modules\google-auth-library\build\src\auth\oauth2client.js:350:18)
如何在 Apps 脚本中使用会议数据创建活动的示例请求:
function myFunction() {
var calendarId = "primary";
var resource = {
"summary": "event with conference data",
"end": {
"date": "2020-04-10"
},
"start": {
"date": "2020-04-10"
},
"conferenceData": {
"createRequest": {
"requestId": "123",
"conferenceSolutionKey": {
"type": "eventNamedHangout"
}
}
}
};
var event=Calendar.Events.insert(resource, calendarId,{"conferenceDataVersion":"1"})
Logger.log(event.id);
}
如果是插件 - 我认为 type
应该是 addOn
而不是 eventNamedHangout
。