使用 Google API
本页面提供资源,帮助您在 Dart 应用中使用 Firebase 和 Google 客户端 API 。
Firebase
#您在 Firebase 中使用的 Dart API 取决于您是在为 Flutter 应用还是其他类型的 Dart 应用编写代码。
Flutter 应用可以选择许多官方支持的插件,用于流行的 Firebase 产品,例如 Analytics、Cloud Firestore、Cloud Functions 和 Crashlytics。 有关这些插件的完整列表,请参阅 FlutterFire 。
其他类型的 Dart 应用可以使用社区支持的 firebase
包 。
Google 客户端 API
#googleapis
包 包含 180 多个 Google 客户端 API 的生成 API,例如 Google Docs API、YouTube 数据 API、Cloud Translation API 和 Cloud Storage API。
如果您正在构建 Flutter 应用程序,请参阅 Flutter Google API 指南 。
如果您想将 Google API 作为服务器应用程序的一部分使用,请参阅 google_apis 服务器示例 。
某些包为 googleapis
提供的 API 提供了惯用的 Dart 包装器。 例如,如果您想使用 Google Sheets API,请考虑使用 gsheets
包 ,它提供了 替代 API ,作为 自动生成的 API 的替代。
要查找 Google 客户端 API 的包装器包,请搜索 依赖于 googleapis
的包 。
除非另有说明,否则本网站上的文档反映的是 Dart 3.6.0。页面最后更新于 2025-02-05。 查看源代码 或 报告问题.