重要提示:我们不再接受 Play EMM API 的新注册。
了解详情。
Products: list
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
查找与查询匹配的获批商品,或查找所有已获批准的商品(如果没有查询)。
请求
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
]
}
属性名称 |
价值 |
说明 |
备注 |
product[] |
list |
与 Google Play 商店中的产品(例如应用)相关的信息,用于向企业管理员显示。 |
|
pageInfo |
nested object |
常规分页信息。 |
|
pageInfo.totalResults |
integer |
|
|
pageInfo.resultPerPage |
integer |
|
|
pageInfo.startIndex |
integer |
|
|
kind |
string |
标识所属资源种类。值:固定字符串 "androidenterprise#productsListResponse" 。 |
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-06-25。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
{
"last_modified": "最后更新时间 (UTC):2024-06-25。",
"state": ""
}