如何从 AirWatch APIS 获取 android 应用版本名称

How to get android app versionName from AirWatch APIS

我想使用 Airwatch api's 获取部署到 AirWatch 的所有 app/product 的 versionName 但我不确定是否有任何 API 可用。

我在 document 中进行了搜索,但找不到任何 api 名称。谁能告诉我服务名称以获取 android 应用程序的版本。

编辑1: 下面的调用不返回任何数据。我是不是漏了什么

https://host/api/mdm/devices/apps?searchby=idTest&id=1520&pageTest=1
https:host/api/mdm/devices/1520/apps?page={page}&pagesize=1

这样调用其他服务并工作

"https://host/api/mdm/devices?searchby=Serialnumber&id=jjjQA7AL"

Edit2: 当我使用 URI 时

https://host/api/mdm/devices/apps?searchby=Serialnumber&id=R10QA7AL&page=1&pagesize=1

正在获取样例数据(与我的产品无关)

{"DeviceApps":[{"ApplicationName":"Amazon Kindle","Version":"8.21.1.0","BuildVersion":"","Status":2,"Size":"122252286","ApplicationIdentifier":"com.amazon.kindle","Type":"System","IsManaged":false}],"Page":1,"PageSize":1,"Total":61}

功能:检索设备上存在的应用程序的详细信息。

APIURI–https://host/api/mdm/devices/{id}/apps?page={page}&pagesize={pagesize}

通过以上API,您可以获得有关设备上安装的应用程序的各种信息。 具体可参考文档第6章第361-363页

编辑-1

示例:https://host/api/mdm/devices/apps?searchby=Serialnumber&id=R10QA7AL&page=1&pagesize=50

Edit-2

您可以在搜索参数中使用以下任何选项

Macaddress,Udid,Serialnumber,ImeiNumber

示例:

https://host/api/mdm/devices/apps?searchby=Serialnumber&id=R10QA7AL&page=1&pagesize=50
https://host/api/mdm/devices/apps?searchby=ImeiNumber&id=YourID&page=1&pagesize=50
https://host/api/mdm/devices/apps?searchby=Udid&id=YourID&page=1&pagesize=50
https://host/api/mdm/devices/apps?searchby=Macaddress&id=YourID&page=1&pagesize=50

编辑:3 如果你想获取所有页面或所有应用程序,删除页面和页面大小参数。像这样

https://host/api/mdm/devices/apps?searchby=Serialnumber&id=R10QA7AL