客户端库
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
我们建议您使用我们的官方客户端库来基于 Mirror API 进行开发。我们提供了多种语言版本的客户端库。下面列出了我们已使用 Mirror API 测试过的客户端库。
如需将客户端库与 Mirror API 搭配使用,您需要基本库和一个特殊的生成组件,该组件会告知基本库如何使用 Mirror API。
在下表中,第一列显示的是每个库所处的开发阶段(请注意,有些库仍处于早期阶段),第二列中的内容可链接到各个库的主页面。
对于具有 Google Mirror API 示例的库,可以点击下表中第三列的链接直接跳转到这些示例。如果某个库的示例页面尚不包含该 API 的示例,您仍可以使用以下库 - 只需根据需要调整某个现有示例即可。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eIt is recommended to use the official Google client libraries when developing on the Mirror API, with libraries available for various programming languages.\u003c/p\u003e\n"],["\u003cp\u003eEach client library requires a base library and a generated component specifically for the Mirror API.\u003c/p\u003e\n"],["\u003cp\u003eLibraries are in different development stages (e.g., alpha, beta) and links to their documentation and samples (if available) are provided in the table.\u003c/p\u003e\n"],["\u003cp\u003eYou can adapt existing samples within a library if a specific Mirror API sample is not readily available.\u003c/p\u003e\n"]]],[],null,["# Client libraries\n\nWe recommend that you use our official client libraries to develop on the\nMirror API. We have client libraries for many languages. Below is a list of the\nclient libraries that we have tested with the Mirror API.\n\nTo use a client library with the Mirror API you need the base library and a\nspecial generated component that tells the base library how to use the\nMirror API.\n\nIn the table below, the first column shows each library's stage of development; note that some are still in early stages. The second column links to the main page for each library.\n\nFor libraries that have samples for the Google Mirror API, the third column in the table below links to them directly. If a library's samples page does not yet include a sample for this API, you can still use that library -- simply adapt one of the existing samples as needed.\n\n| Client library | Documentation | All client library samples |\n| Google API Client Library for .NET | \u003chttp://www.nuget.org/packages/Google.Apis/\u003e | [.NET samples](/api-client-library/dotnet/apis#Google_Mirror_API) |\n| Google APIs Client Libraries for Dart (beta) | [https://pub.dartlang.org/packages/googleapis](http://pub.dartlang.org/packages/google_mirror_v1_api) | [Dart samples](https://github.com/dart-gde/dart_api_client_examples) |\n| Google API Client Library for Go () | \u003chttps://github.com/google/google-api-go-client\u003e | [Go samples](https://github.com/google/google-api-go-client/tree/master/examples#Google_Mirror_API) |\n| Google API Client Library for Java | \u003chttps://developers.google.com/api-client-library/java/\u003e | [Java samples](/api-client-library/java/apis#Google_Mirror_API) |\n| Google API Client Library for JavaScript | \u003chttps://code.google.com/p/google-api-javascript-client/\u003e | [JavaScript samples](/api-client-library/javascript/samples/samples#Google_Mirror_API) |\n| Google API Client Library for Objective-C for REST | \u003chttps://github.com/google/google-api-objectivec-client-for-rest\u003e | [Objective-C samples](https://github.com/google/google-api-objectivec-client-for-rest/tree/master/Examples#Google_Mirror_API) |\n| Google API Client Library for PHP () | \u003chttps://github.com/google/google-api-php-client\u003e | [PHP samples](https://github.com/google/google-api-php-client/tree/master/examples#Google_Mirror_API) |\n| Google API Client Library for Python (v1/v2) | [Google APIs Client Library for Python](/api-client-library/python) | [Python samples](https://github.com/google/google-api-python-client/tree/master/samples#Google_Mirror_API) |\n| Google API Client Library for Ruby (alpha) | \u003chttps://github.com/google/google-api-ruby-client\u003e | [Ruby samples](https://github.com/google/google-api-ruby-client-samples#Google_Mirror_API) |\n|----------------------------------------------------|-------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|"]]