【问题标题】:Google API - How can I get the gmail contact details page?Google API - 如何获取 gmail 联系方式页面?
【发布时间】:2014-09-12 19:16:18
【问题描述】:

我的应用程序使用 google+ 注册和登录系统。 当用户点击 gplus 按钮时,我的应用可以管理他的 gmail 联系人。

登录后,我可以通过简单的 $.getJSON 调用轻松获取所有 gmail 联系人。 Google 响应是一个结构良好的 JSON - 提要和条目,我可以在其中找到联系人全名、电子邮件地址、手机号码等。

我的问题是能够跳转到特定联系人的 google 详细信息页面。 这是我的问题:你知道我该怎么做吗?

我的意思是……联系人的唯一标识符在哪里?如何创建一个链接以打开该特定联系人的 Google 详细信息?

谢谢

【问题讨论】:

    标签: google-api google-api-client


    【解决方案1】:

    改用 Google+ 数据 API。它返回使用的详细信息,包括该用户的 id。

    它的响应如下:

    {
      "kind": "plus#person",
      "id": "118051310819094153327",
      "displayName": "Chirag Shah",
      "url": "https://plus.google.com/118051310819094153327",
      "image": {
        "url": "https://lh5.googleusercontent.com/-XnZDEoiF09Y/AAAAAAAAAAI/AAAAAAAAYCI/7fow4a2UTMU/photo.jpg"
      }
    }
    

    现在,使用该 ID,您可以转到http://plus.google.com/your_id 的用户详细信息页面

    详情请见此处:https://developers.google.com/+/api/#data

    【讨论】:

      猜你喜欢
      • 2021-09-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-23
      • 2015-01-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多