尋找符合查詢且已核准的產品。如果沒有查詢,尋找已核准的所有產品。
要求
HTTP 要求
GET https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/products
參數
參數名稱 | 價值 | 說明 |
---|---|---|
路徑參數 | ||
enterpriseId |
string |
企業的 ID。 |
選用的查詢參數 | ||
approved |
boolean |
指定是否要搜尋所有產品 (false),或只搜尋已核准 (true) 的產品。僅支援「true」,且應指定。 |
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" 。 |