Google API/get directory contacts

耗尽温柔 提交于 2020-02-21 14:37:40

问题


I need get list of contacts/phones from google buisness directory listing.

I have tried Google Contacts api, it work ok for all contacts under "My Contacts", but not allow show "Directory" contacts.

What i have use/how to access thoose contacts(company ones)?


回答1:


To add users to the Global Address List (GAL), use the Domain Shared Contacts API. It's similar to the regular Contacts API but is only accessible to admins and has a special URL.




回答2:


Note that to get all users on an account is now possible by using the Uses:list endpoint.

By default, this information is only available to administrators, but a teammate just found that you can set the viewType parameter to domain_public which allows anyone within the org to get a list of everyone on the domain.

We spent hours looking into this before we saw the option, so I thought I'd leave a note here for anyone else looking for the same functionality.




回答3:


The Directory contacts are the users of the Google Apps account. You can access them using the Directory API : https://developers.google.com/admin-sdk/directory/v1/reference/users



来源:https://stackoverflow.com/questions/24737554/google-api-get-directory-contacts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!