如何从gmail获取目录联系人?

时间:2017-12-13 11:56:11

标签: google-api google-directory-api google-people

我看到了一些使用在 GData弃用下实施的联系人API获取目录联系人的帖子。那么有没有其他方法可以通过People API或Directory API为用户提供组织联系?

我尝试根据链接使用Directory API为用户获取组织联系人。 Retrieve a user as a non-administrator

我已完成以下链接中提到的步骤:

Turn the global Directory on or off

我仍然得到以下错误。

{
  "code" : 403,
  "errors" : [ {
    "domain" : "global",
    "message" : "Not Authorized to access this resource/api",
    "reason" : "forbidden"
  } ],
  "message" : "Not Authorized to access this resource/api"
}

我的问题:

  1. 用户可以在目录下获取组织联系人吗?
  2. 如果是,Api需要使用什么?

0 个答案:

没有答案