Google API v3检索所有联系人 [英] Google API v3 retrieving all contacts

查看:105
本文介绍了Google API v3检索所有联系人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个代码(使用Java),可以使用Google API v3从我的Google帐户中获取所有联系人。我的问题是,在成功授权访问帐户后,我只能从最多联系人组中获取联系人。作为feedURL,我使用 https://www.google.com/m8/根据此教程 / contacts / default / full /一>。基本上我的代码是这个例子的复制粘贴,所以我怎么能得到我所有的联系人? 在文档 https://developers.google.com/google-apps/contacts/v3/#retrieving_all_contacts 有一条说明:Feed可能不包含用户的全部联系人,因为返回的结果数量存在默认限制
您可以使用查询参数管理信息。您可以在这里找到这些请求的参数 https://developers.google。 COM /谷歌应用程序/联系人/ V3 /参考#参数的。
参数max-results可能是您需要的。


I'm writing a code (in Java) that let me get all contacts from my google account, using google API v3. My problem is that after I successfully authorize access to account I get contacts only from "Most Contacted" group. As feedURL I'm using https://www.google.com/m8/feeds/contacts/default/full/ according to this tutorial. Basically my code is copy-paste of this example, so how can I get all my contacts?

解决方案

In the documentation https://developers.google.com/google-apps/contacts/v3/#retrieving_all_contacts there is a note saying "The feed may not contain all of the user's contacts, because there's a default limit on the number of results returned" You can use query parameter to manage the information https://developers.google.com/google-apps/contacts/v3/#retrieving_contacts_using_query_parameters. Here you can find the parameters for these requests https://developers.google.com/google-apps/contacts/v3/reference#Parameters. The parameter max-results is probably the one you need.

这篇关于Google API v3检索所有联系人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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