我正在使用googleapis npm软件包创建日历事件。 这是我请求calendar.events.insert创建事件的有效负载。
{
"summary":"Biology class",
"location":"Google Meet: Please follow the google meet url",
"description":"Unit and Measurements",
"colorId":2,
"start":{"dateTime":"2020-06-13T11:00:00+05:30","timeZone":"Asia/Kolkata"},
"end":{"dateTime":"2020-06-13T12:00:00+05:30","timeZone":"Asia/Kolkata"},
"attendees":[
{"email":"attendee1@gmail.com"},
{"email":"attendee2@gmail.com","organizer":true}
],
"reminders":{
"useDefault":false,
"overrides":[{"method":"email","minutes":10},{"method":"popup","minutes":10}]
},
"creator": {
"email": "attendee2@gmail.com",
"self": true
},
"organizer":{
"email":"attendee2@gmail.com",
"self":true
}
}
我想让与会者成为组织者,以便他可以开始会议。 我是否在请求有效负载中缺少某些内容?还是需要授予他们权限?
答案 0 :(得分:1)
creator
和organizer
是只读值,您可以阅读here