取得與指定WebApp
關聯的設定工件。
HTTP請求
GET https://firebase.googleapis.com/v1beta1/{name=projects/*/webApps/*/config}
URL 使用gRPC 轉碼語法。
路徑參數
參數 | |
---|---|
name | 若要下載的
|
請求正文
請求內文必須為空。
響應體
如果成功,回應正文包含具有以下結構的資料:
單一 Firebase Web 應用程式的配置元資料。
JSON 表示 |
---|
{ "projectId": string, "appId": string, "databaseURL": string, "storageBucket": string, "locationId": string, "apiKey": string, "authDomain": string, "messagingSenderId": string, "measurementId": string } |
領域 | |
---|---|
projectId | 不變的。使用者為 |
appId | 不變的。 Firebase 為 |
databaseURL | 預設 Firebase 即時資料庫 URL。 |
storageBucket | 預設 Cloud Storage for Firebase 儲存桶名稱。 |
locationId | 項目的預設 GCP 資源位置的 ID。此位置是可用的GCP 資源位置之一。 如果預設 GCP 資源位置尚未最終確定,則省略此欄位。若要設定專案的預設 GCP 資源位置,請在將 Firebase 資源新增至專案後呼叫 |
apiKey | 與 請注意,此值不是與 |
authDomain | Firebase Auth 為 OAuth 重定向配置的網域,格式如下: |
messagingSenderId | 用於 Firebase 雲端訊息傳遞的寄件者 ID。 |
measurementId | 與 只有當 要產生 對於使用 Firebase JavaScript SDK v7.20.0 及更高版本的應用,Firebase 會在您的應用程式初始化 Analytics 時動態取得 |
授權範圍
需要以下 OAuth 範圍之一:
-
https://www.googleapis.com/auth/cloud-platform
-
https://www.googleapis.com/auth/cloud-platform.read-only
-
https://www.googleapis.com/auth/firebase
-
https://www.googleapis.com/auth/firebase.readonly
有關詳細信息,請參閱身份驗證概述。