[英]Google Calendar Api insert event return error “Invalid start time”
I try run api for insert event, and somethime i got error "Invalid start time": My parametrs is:我尝试为插入事件运行 api,有时我收到错误“无效的开始时间”:我的参数是:
{
description: "desription text"
end: {dateTime: "2019-10-01T13:30:00+02:00"}
location: "location text"
start: {dateTime: "2019-10-01T11:00:00+02:00"}
summary: "summary text"
}
I try insert event for 2019-10-01 11:00-13:30.我尝试在 2019-10-01 11:00-13:30 插入事件。 How can I solve my problem, what is wrong in my datetimes?
我该如何解决我的问题,我的日期时间出了什么问题? Thanks
谢谢
I used the following request in "Try this API" window for insert event [1] and worked perfectly:我在“Try this API”window 中使用以下请求插入事件 [1] 并完美运行:
{
"description": "desription text",
"end": {
"dateTime": "2019-10-01T13:30:00+05:00"
},
"location": "location text",
"start": {
"dateTime": "2019-10-01T11:00:00+05:00"
},
"summary": "summary text"
}
It could be that you're missing the double quotes for the attributes or the commas between them.可能是您缺少属性的双引号或它们之间的逗号。
[1] https://developers.google.com/calendar/v3/reference/events/insert [1] https://developers.google.com/calendar/v3/reference/events/insert
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.