Google Calendar API : event update with the Ruby gem -
Google Calendar API : event update with the Ruby gem -
i'm using https://github.com/google/google-api-ruby-client connect different google api in particular google calendar one.
creating event, updating , deleting works of time 1 can find around.
the issue appears when 1 tries update event details after previous update of dates of event. in case, id provided not plenty , request fails error :
smhwcalendar::googleserviceexception: invalid sequence value. 400
yet documentation not mention such things : https://developers.google.com/google-apps/calendar/v3/reference/calendars/update
the event documentation describe sequence attribute without saying much : https://developers.google.com/google-apps/calendar/v3/reference/events/update
what's needed update event ? is there specific attributes maintain track of when creating, updating events besides event id ? how ruby google api client handling ?
i think reply cannot decrease sequence number of event applies here too. sequence number must not decrease (and if don't supply it, it's same if supplied 0) + operations (such time changes) bump sequence number. create sure work on recent re-create of event (the 1 provided in response).
ruby google-calendar
Comments
Post a Comment