【发布时间】:2016-08-30 18:06:18
【问题描述】:
目前,我可以从谷歌日历中检索特定日历的事件,例如主日历。我已经参考了这个链接https://developers.google.com/google-apps/calendar/quickstart/php#prerequisites 从谷歌日历中检索事件。
但是,我想要的是当数据库中有新数据/事件时,它会将来自数据库的事件插入到谷歌日历中。同样,当从数据库中删除数据/事件时,谷歌日历中的相同数据/事件也将被删除。除此之外,当数据库发生更新时。例如将事件标题从 A 更改为 B。因此,谷歌日历中的相同事件也应该更新。换句话说,数据库数据应该与谷歌日历同步。
以下链接用于获取、插入、删除、更新谷歌日历中的事件。
https://developers.google.com/google-apps/calendar/v3/reference/events/get
https://developers.google.com/google-apps/calendar/v3/reference/events/insert
https://developers.google.com/google-apps/calendar/v3/reference/events/delete
https://developers.google.com/google-apps/calendar/v3/reference/events/update
非常感谢任何帮助,谢谢。
【问题讨论】:
-
谢谢,我去看看。
标签: php mysql calendar google-calendar-api