云手机服务器 CPH-安装apk:请求示例

时间:2024-10-11 17:24:10

请求示例

  • 在云手机中安装apk

    POST https://{CPH Endpoint}/v1/{project_id}/cloud-phone/phones/commands
    
    {
      "command" : "install",
      "content" : "-t -r obs://push-bucket/my_apps/test.apk",
      "phone_ids" : [ "1234567b8bab40ffb711234cb80d0234", "1678567b8bab40f93711234cb80d0764" ]
    }
  • 在云手机中安装多apk

    POST https://{CPH Endpoint}/v1/{project_id}/cloud-phone/phones/commands
    
    {
      "command" : "install-multiple",
      "content" : "-t -r obs://push-bucket/my_apps/test_part1.apk obs://push-bucket/my_apps/test_part_2.apk obs://push-bucket/my_apps/test_part3.apk",
      "phone_ids" : [ "1234567b8bab40ffb711234cb80d0234", "1678567b8bab40f93711234cb80d0764" ]
    }
support.huaweicloud.com/api-cph/cph_api_0530.html