Google Calendar api v3 重新更新问题 [英] Google Calendar api v3 re-update issue

查看:24
本文介绍了Google Calendar api v3 重新更新问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Google 日历,但在将 Iphone 上的日历应用程序与 Google 日历之间的数据同步时遇到问题.(我使用 google api v3)问题是:我可以在创建事件后通过代码更新事件 1 次.下次尝试更新时,我收到消息代码 400:错误请求.

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.

我们可以使用谷歌日历探索来测试这个(https://code.google.com/apis/explorer/#_s=calendar&_v=v3&_m=calendars.update)通过创建一个事件然后更新它 2时间.

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?

推荐答案

我遇到了同样的问题并在这里得到了答案:Google Calendar API v3 - 更新事件

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'];

并使用 $event->setSequence($seq)

设置更新事件详细信息时.

when setting your update event details.

这篇关于Google Calendar api v3 重新更新问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆