简体   繁体   English

Google 日历 Api 插入事件返回错误“开始时间无效”

[英]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.

相关问题 为什么此Google Calendar API请求不返回事件数据,例如开始时间? - Why does this Google Calendar API request not return event data such as start time? 如何在事件 object 中为谷歌日历 api 设置开始和结束时间 - How to set start and end time in event object for google calendar api 缺少结束时间 - Google 日历 API 调用以插入事件 - Missing End Time - Google Calendar API call to insert event Google Calendar API将日期,时间和事件名称返回给Javascript - Google Calendar API return date, time and event name to Javascript 未经授权的Google Calendar API插入事件 - Google Calendar API Insert event without authorization Node.js - Google 日历 API 在插入事件时显示错误“缺少结束时间” - Node.js - Google Calendar API showing error "Missing end time" when inserting an event 为什么 Google Calendar API 会比我使用 Node.js 提供的日期/时间早 4 小时插入我的活动? - Why does Google Calendar API insert my event 4 hours earlier than the date/time that I've given it using Node.js? 插入Google Calendar API v3可使时间提前1小时 - Insert into google calendar API v3 puts time 1 hour ahead Google Calendar API-未定义事件 - Google Calendar API - Undefined event 为什么此Google日历活动格式无效? - Why is this Google Calendar Event format invalid?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM