Google日历ruby API V3的重复性
使用以下代码,我无法将任何重复事件推送到google日历。但是,从事件中去掉“重复”项,它就会工作 我做错了什么Google日历ruby API V3的重复性,ruby,google-api,google-calendar-api,Ruby,Google Api,Google Calendar Api,使用以下代码,我无法将任何重复事件推送到google日历。但是,从事件中去掉“重复”项,它就会工作 我做错了什么 event = { 'summary' => 'Appointment', 'location' => 'Somewhere', 'start' => { 'dateTime' => '2011-06-03T10:00:00.000-07:00' }, 'end' => { 'dat
event = {
'summary' => 'Appointment',
'location' => 'Somewhere',
'start' => {
'dateTime' => '2011-06-03T10:00:00.000-07:00'
},
'end' => {
'dateTime' => '2011-06-03T10:25:00.000-07:00'
},
'recurrence' => [
"RRULE:FREQ=DAILY;COUNT=5"
]
}
result = @client.execute(:api_method => @service.events.insert,
:parameters => {'calendarId' => 'hg9a7o16bm6dj0tmuo481499mc@group.calendar.google.com'},
:body_object => event,
:headers => {'Content-Type' => 'application/json'})
puts result.data.id.to_s
请尝试使用“RRULE:FREQ=每周;直到=20120701T160000Z” 请尝试使用“RRULE:FREQ=WEEKLY;直到=20120701T160000Z” 时区需要在单独的字段中设置,如下所示
event = {
'summary' => 'Appointment',
'location' => 'Somewhere',
'start' => {
'dateTime' => '2011-06-03T10:00:00.000-07:00',
'timeZone' => 'America/Montreal'
},
'end' => {
'dateTime' => '2011-06-03T10:25:00.000-07:00',
'timeZone' => 'America/Montreal'
},
'recurrence' => [
"RRULE:FREQ=DAILY;COUNT=5"
]
}
时区需要在单独的字段中设置,如下所示
event = {
'summary' => 'Appointment',
'location' => 'Somewhere',
'start' => {
'dateTime' => '2011-06-03T10:00:00.000-07:00',
'timeZone' => 'America/Montreal'
},
'end' => {
'dateTime' => '2011-06-03T10:25:00.000-07:00',
'timeZone' => 'America/Montreal'
},
'recurrence' => [
"RRULE:FREQ=DAILY;COUNT=5"
]
}
这不是问题所在。这只是一个时区问题。。如api开发人员指南--'所示。别担心,我们都去过那里(比我想承认的要多),这不是问题所在。这只是一个时区问题。。如api开发人员指南--'所示。别担心,我们都去过那里(比我想承认的要多)。