谷歌企业应用套件同步联系人 [英] Google Apps Contact Sync

查看:326
本文介绍了谷歌企业应用套件同步联系人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发一个应用程序,我们希望建立与谷歌通讯录双向同步。

We're developing an application and we want to setup a bi-directional sync with Google Contacts.

这个过程:他们建立自己的谷歌账户和应用程序使他们的谷歌帐户,我们的数据库之间的同步

The process: They setup their Google Accounts and the application make the sync between their Google account and our database.

第一种方法是创建一个cron将取修改的API​​,但是这不是很有效,因为我们需要经常运行CRON。

The first approach is to create a CRON that will fetch modifications to the API but this is not very efficient as we'll need to run the CRON very often.

你知道,如果有任何方式谷歌能够通知我们一个修改?

Do you know if there is any way Google can "notify us" of a modifications ?

也许从我们直接运行在服务器上的脚本? (如谷歌脚本),我们将那么可以拨打我们的应用程序,使一个新的获取。

Maybe from a script we execute on their servers directly ? (Like Google Scripts) We'll then be able to call our app to make a new fetch.

推荐答案

有没有方法有变化推到你的应用程序。然而,当轮询更改,您可以通过使用更新分钟参数减少交通作为描述的:

There is no method to have changes "pushed" to your app. However, when polling for changes, you can minimize the traffic by using the updated-min parameter as described at:

https://developers.google.com/google-apps/联系人/ V3 /参考#参数

<一个href=\"https://developers.google.com/google-apps/contacts/v3/#retrieving_contacts_using_query_parameters\" rel=\"nofollow\">https://developers.google.com/google-apps/contacts/v3/#retrieving_contacts_using_query_parameters

这篇关于谷歌企业应用套件同步联系人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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