Directory API:客户端库
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Directory API 基于 HTTP 和 JSON 构建,因此任何标准 HTTP 客户端均可向其发送请求并解析响应。
不过,Google API 客户端库具有多项优势,例如语言集成更好,安全性更高,而且支持需要用户授权的调用。客户端库支持多种编程语言;使用客户端库可以避免手动设置 HTTP 请求和手动解析响应。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-05-14。
[null,null,["最后更新时间 (UTC):2025-05-14。"],[],[],null,["# Directory API: Client Libraries\n\nThe Directory API is built on HTTP and JSON, so any standard HTTP client can send requests to it and parse the responses.\n\nHowever, the Google APIs client libraries provide better language integration, improved security, and support for making calls that require user authorization. The client libraries are available in a number of programming languages; by using them you can avoid the need to manually set up HTTP requests and parse the responses.\n\n| Client library | Documentation |\n|----------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------|\n| [Google APIs Client Library for Python](https://github.com/googleapis/google-api-python-client) | [PyDoc](https://google-api-client-libraries.appspot.com/documentation/admin/directory_v1/python/latest/) |\n| [Google APIs Client Library for Java](https://developers.google.com/resources/api-libraries/download/stable/admin/directory_v1/java) | [Javadoc](https://developers.google.com/resources/api-libraries/documentation/admin/directory_v1/java/latest/) |\n| [Google APIs Client Library for .NET](https://developers.google.com/resources/api-libraries/download/stable/admin/directory_v1/csharp) | [Reference documentation](https://developers.google.com/resources/api-libraries/documentation/admin/directory_v1/csharp/latest/) |"]]