Products: list

尋找符合查詢條件的已核准產品,或是所有已核准的產品 沒有查詢的話

要求

HTTP 要求

GET https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/products

參數

參數名稱 說明
路徑參數
enterpriseId string 企業的 ID。
選用的查詢參數
approved boolean 指定是否要搜尋所有產品 (false) 或 僅限已核准 (是) 的產品。僅限「是」為 且需要指定 。
language string 使用者偏好語言的 BCP47 標記 (例如「en-US」、「de」)。 系統會根據最適當的語言傳回結果 語言。
maxResults unsigned integer 指定每項要求可傳回的產品數量上限。如未指定,系統會使用 100 的預設值,也就是單次回應中可擷取的最大值。
query string 在 Google Play 商店搜尋框中輸入的搜尋查詢。 如果省略,系統會使用分頁傳回所有核准的應用程式 參數),包括商店上架的應用程式 (例如已取消發布的應用程式)。
token string 當有多個產品時,要求回應會包含分頁符記。可以在後續的要求中使用權杖取得更多產品,依此類推。此參數無法在初始要求中使用。

授權

此要求需要具有下列範圍的授權:

範圍
https://www.googleapis.com/auth/androidenterprise

詳情請參閱「驗證與授權」網頁。

要求主體

請勿使用這個方法提供請求主體。

回應

如果成功的話,這個方法會傳回回應內文,其結構如下:

{
  "kind": "androidenterprise#productsListResponse",
  "pageInfo": {
    "totalResults": integer,
    "resultPerPage": integer,
    "startIndex": integer
  },
  "tokenPagination": {
    "nextPageToken": string,
    "previousPageToken": string
  },
  "product": [
    products Resource
  ]
}
屬性名稱 說明 附註
tokenPagination nested object 權杖分頁的分頁資訊。
tokenPagination.nextPageToken string
product[] list Google Play 商店中的產品 (例如應用程式) 相關資訊,會向企業管理員顯示。
pageInfo nested object 一般分頁資訊。
pageInfo.totalResults integer
pageInfo.resultPerPage integer
pageInfo.startIndex integer
tokenPagination.previousPageToken string
kind string 標示資源的種類。值:固定字串 "androidenterprise#productsListResponse"