使用客户端库
Google My Business API 客户端库改进了语言集成并简化了用户身份验证流程。
在使用 Google My Business API 之前,您需要注册您的应用并获取 OAuth 2.0 凭据。请参阅基本设置,详细了解如何开始使用 Google My Business API。
注意:这些说明假定您使用的是类似于 Unix 的环境。
客户端库下载
访问库页面,获取最新的 Google My Business API 客户端库。
Google My Business API 客户端库利用 Google API 客户端库进行错误处理,管理请求和响应、OAuth 以及其他常见功能。
如果您选择的编程语言目前还没有对应的客户端库可供下载,则可以使用发现文档来帮助自动生成您自己的客户端库。
客户端库使用示例
您可以访问 GitHub,查看并下载使用客户端库的完整示例。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-28。
[null,null,["最后更新时间 (UTC):2024-11-28。"],[[["The Google My Business API client libraries offer better language integration and easier user authentication."],["You must register your application and get OAuth 2.0 credentials before using the Google My Business API, with setup details available in the Basic Setup guide."],["Client libraries can be downloaded from the Libraries page, and a discovery document is provided to assist in generating custom libraries for unsupported languages."],["For usage examples and complete samples, refer to the Google My Business samples on GitHub."]]],["To use the Google My Business API, register your application and obtain OAuth 2.0 credentials. Client libraries, which offer improved language integration and user authentication, can be downloaded from the Libraries page. These libraries utilize Google API Client Libraries for core functionalities. If a specific language isn't supported, a Discovery document aids in generating custom libraries. Full usage examples are available on GitHub. The setup assumes a Unix-like environment.\n"]]