【问题标题】:Getting contacts from Google Api从 Google Api 获取联系人
【发布时间】:2014-08-06 09:38:24
【问题描述】:

我在从 Google 获取用户联系人时遇到问题。所以问题是谷歌联系人也包含用户的移动联系人(如果同步到谷歌),我不想向用户显示。这是我的代码:

        $.get("https://www.google.com/m8/feeds/contacts/default/full?alt=json&access_token=" + authResult.access_token + "&max-results=500&start-index=" + gPageInd + "&sortorder=ascending&sortBy=emails&v=3.0",function(response)
{
//code here 
});

我只想要那些有电子邮件的记录,为此我尝试按电子邮件排序。我不知道这是正确的做法。

【问题讨论】:

    标签: google-api google-contacts-api


    【解决方案1】:

    As stated in the documentationsortedBy唯一支持的参数是lastmodified。您必须检索所有联系人,然后在您的代码中进行过滤。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-24
      • 2014-09-04
      • 1970-01-01
      • 2012-02-05
      相关资源
      最近更新 更多