試用 Admin API

目前試用 Admin API 有兩種選項:OAuth 2.0 PlaygroundAPI Explorer

OAuth 2.0 Playground

使用 OAuth 2.0 Playground 可預覽驗證流程、取得存取憑證,並傳送 HTTP 要求。如何使用 OAuth 2.0 Playground:

  1. 開啟 OAuth 2.0 Playground
  2. 在步驟 1 中,系統會預先選取 https://www.googleapis.com/auth/cloud-platform 範圍。按一下「授權 API」,啟動驗證程序。
  3. 按一下「允許」,將Google Cloud 服務的存取權授予 Google OAuth 2.0 Playground,以遵循「隱含驗證流程」操作。
  4. 在步驟 2 中,按一下 [Exchange authorization code for tokens] (交換憑證的授權碼) 以接收存取憑證。

  5. 在步驟 3 中,「Request URI」(要求 URI) 欄位已預先填入 URI 範例:

    https://appengine.googleapis.com/v1/apps/{appsId}/services/default
    

    您必須使用 Google Cloud Platform 專案 ID 來取代 {appsId},然後按一下 Send the request 以查看專案的 default 服務詳細資訊。

    使用此 URI 欄位,針對您在專案中指定的資源傳送 HTTP 要求。如要進一步瞭解如何在要求 URI 中指定資源,請參閱 Admin API 中的 REST

APIs Explorer

使用 APIs Explorer 查看所有 Admin API 方法和欄位的清單以及相關說明。接著您可以按一下清單中的項目來產生 URI,並針對您指定的資源傳送 HTTP 要求。

如何使用 APIs Explorer:

  1. 開啟 APIs Explorer
  2. 選取您要試用的方法。
  3. 指定專案中的資源 ID 以及任何支援的欄位。
  4. 按一下 [Execute] (執行),針對專案傳送 HTTP 要求,然後查看產生的要求 URI 和 HTTP 回應。

後續步驟