I'm working on google calendar and having problem with syncing data between my Calendar app on Iphone to Google Calendar. (I use google api v3) The problem is: I can update an event by code just 1 time after i created it. The next time when i try to update it, i get message code 400: bad request.
We can use google calendar explore to test this (https://code.google.com/apis/explorer/#_s=calendar&_v=v3&_m=calendars.update) by creating an event then update it 2 time.
Does any one meet this problem?
I had this same problem and got the answer here: Google Calendar API v3 - Update Event
You can edit the same event twice, you just have to 'get' the event sequence
$event = $service->events->get("primary", $exist);
$seq=$event['sequence'];
and use $event->setSequence($seq)
when setting your update event details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With