[英]Get event info from resource id on push notification google calendar
现在我找不到如何获取,修改了哪些事件数据或创建了一些事件。
如何通过推送通知标题数据找到事件列表(在第4行中提到)
标头数据中没有更改的资源/事件列表。 Google只会让您知道日历中的内容已发生变化。
要在每次Google Post请求之后获取更改的资源,您需要使用带有syncToken
google列出日历的事件,并保存新的将作为响应显示为nextSyncToken
。 如果您在请求中提供了syncToken
参数,则只能从syncToken
获取更改。 Google将此流程称为incremental sync
。
https://developers.google.com/google-apps/calendar/v3/sync#incremental_sync
请从此处阅读syncToken
和nextSyncToken
参数: https : //developers.google.com/google-apps/calendar/v3/reference/events/list
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.