Products: getPermissions

检索此应用所需的 Android 应用权限。

请求

HTTP 请求

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

参数

参数名称 说明
路径参数
enterpriseId string 企业 ID。
productId string 商品的 ID。

授权

此请求需要获得以下范围的授权:

范围
https://www.googleapis.com/auth/androidenterprise

如需了解详情,请参阅身份验证和授权页面。

请求正文

使用此方法时请勿提供请求正文。

响应

如果成功,此方法将返回采用以下结构的响应正文:

{
  "kind": "androidenterprise#productPermissions",
  "productId": string,
  "permission": [
    {
      "permissionId": string,
      "state": string
    }
  ]
}
属性名称 说明 备注
productId string 与权限相关的应用的 ID,例如“app:com.google.android.gm”。
permission[] list 应用所需的权限。
permission[].permissionId string 不透明的字符串,用于唯一标识权限。
permission[].state string 权限是否已被接受。

可接受的值:
  • accepted
  • required
kind string