Help Center> Cloud Phone Host> API Reference> APIs for Cloud Mobile Gaming Management> Application Deployment> Querying the List of Applications Deployed on a Cloud Phone

Querying the List of Applications Deployed on a Cloud Phone

Function Description

  • API Name

    QueryPhoneAppsDetail

  • Function

    Query the list of applications deployed on a cloud phone. A maximum of 100 records can be returned for each request.

URI

GET /v1/{project_id}/cloud-phone/phones/{phone_id}/apps?offset=0&limit=100

For details, see Table 1.
Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID.

For details about how to obtain the project ID, see Obtaining a Project ID.

phone_id

Yes

String

Specifies the cloud phone ID.

offset

No

Integer

Offset

If the value is an integer greater than 0 but less than the number of resources, all resources after this offset will be queried. The default value is 0.

limit

No

Integer

Specifies the number of resources returned on each page.

Value range: 1–100 (default value: 100)

Generally, set this parameter to 10, 20, or 50.

Request

  • Request parameters

    None

  • Example request
    1
    GET https://{CPH Endpoint}/v1/{project_id}/cloud-phone/phones/{phone_id}/apps?offset=0&limit=100
    

Response

  • Response parameters

    Parameter

    Type

    Description

    request_id

    String

    Specifies the request ID, which is unique.

    apps

    Array of objects

    Specifies the application information. For details, see Table 2.

    Table 2 app field description

    Parameter

    Type

    Description

    app_id

    String

    Specifies the application ID.

    package_name

    String

    Specifies the application package name.

    name

    String

    Specifies the application name.

    description

    String

    Provides supplementary information about the application.

    app_version_id

    String

    Specifies the application version ID.

    version_code

    String

    Specifies the official application version.

    version_name

    String

    Specifies the application version.

    launch_activity

    String

    Specifies the application startup path.

  • Example response
    {
        "request_id": "6a63a18b8bab40ffb71ebd9cb80d0085",
        "apps": [{
            "app_id": "xxxxxx",
            "package_name": "com.game.package",
            "name": "",
            "description": "",
            "app_verison_id": "",
            "version_code": "",
            "version_name": "",
            "launch_activity": "xxx"
        },
        {
            "app_id": "xxxxxx",
            "package_name": "com.game.package1",
            "name": "",
            "description": "",
            "app_verison_id": "",
            "version_code": "",
            "version_name": "",
            "launch_activity": "xxx"
        }]
    }

Returned Values

See Returned Values.

Error Codes

See Error Codes.