跳到主要內容

使用 Google API

本頁面提供資源,幫助您在 Dart 應用中使用 FirebaseGoogle 客戶端 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 Data API、Cloud Translation API 和 Cloud Storage API。

如果您正在構建 Flutter 應用,請參閱 Google API 的 Flutter 指南

如果您想在伺服器應用中使用 Google API,請參閱 google_apis 伺服器示例

有些包為 googleapis 提供的 API 提供了慣用的 Dart 封裝。例如,如果您想使用 Google Sheets API,請考慮使用 gsheets,它提供了對自動生成的 API替代 API

要查詢 Google 客戶端 API 的封裝包,請搜尋依賴於 googleapis 的包