【发布时间】:2017-05-04 06:09:28
【问题描述】:
谁能帮我更新一个重复事件系列,而不会收到我在下面遇到的location: alt 的错误 400?
当我尝试通过 Google 日历 API 系列更新所有定期事件时,我收到以下错误:
其中包含此消息:
{"error": {"errors": [{ "domain":"global", "reason":"invalidAltValue", "message":"Unknown output format: json 400", "locationType":"parameter", "location":"alt" }], "code":400, "message":"Unknown output format: json 400" } }
调用触发错误:
var recurringEvent = {
'summary': 'Google I/O 2015',
'location': '800 Howard St., San Francisco, CA 94103',
'description': 'A chance to hear more about Google\'s developer products.',
'start': {
'dateTime': '2017-05-28T09:00:00-07:00',
'timeZone': 'America/Los_Angeles'
},
'end': {
'dateTime': '2017-05-28T17:00:00-07:00',
'timeZone': 'America/Los_Angeles'
},
'recurrence': [
'RRULE:FREQ=WEEKLY;INTERVAL=1;UNTIL=2017-06-06T03:59:59.000Z'
]
};
var eventId = this.props.user.calendarEventRecurringEventId; // POSSIBLY THE ISSUE: I use the Recurring Event Id here because I am trying to update all events in the series rather than the individual event.
this.updateEvent(recurringEvent, eventId);
【问题讨论】:
标签: javascript google-calendar-api