### POST /api/v1/cloud-mobile/app/start Source: https://api-docs.hubstudio.cn/380052356e0 Starts an installed application on a cloud phone. The cloud phone must be in an 'on' state. This API is used to launch applications remotely on virtualized mobile devices. ```APIDOC ## POST /api/v1/cloud-mobile/app/start ### Description Starts an installed application on a cloud phone. The cloud phone must be in an 'on' state. This API is used to launch applications remotely on virtualized mobile devices. ### Method POST ### Endpoint /api/v1/cloud-mobile/app/start ### Parameters #### Header Parameters - **Accept-Language** (string) - Optional - Default: zh-CN - The default request language. - **Authorization** (string) - Optional - Default: 'NULL' - Required for Local API with security enabled. API Key from the client. #### Request Body - **mobileId** (integer) - Required - The ID of the cloud phone. Obtainable via `/api/v1/cloud-mobile/mobile-product-list`. - **packageName** (string) - Required - The package name of the application. Obtainable via `/api/v1/cloud-mobile/app/installedList`. ### Request Example ```json { "mobileId": 0, // 云手机ID "packageName": "" // 应用包名 } ``` ### Response #### Success Response (200) - **code** (integer) - Business status code. - **msg** (string) - Response message. - **data** (boolean) - Business data carrier. - **requestId** (string) - Request ID. - **timestamp** (integer) - Timestamp. #### Response Example ```json { "code": 0, "msg": "Success", "requestId": "07ece6731a5e4450b9dee2fdb09cb6ee", "timestamp": 1742289013309, "data": true } ``` ``` -------------------------------- ### Environment Management - Success Example Source: https://api-docs.hubstudio.cn/380052377e0 This snippet provides an example of a successful response for environment management operations, including request ID, message, code, and data. ```APIDOC ## GET /websites/api-docs_hubstudio_cn/coreVersion ### Description Retrieves the core version information for the environment. ### Method GET ### Endpoint /websites/api-docs_hubstudio_cn/coreVersion ### Parameters #### Query Parameters - **requestId** (string) - Optional - The ID for the request. ### Response #### Success Response (200) - **requestId** (string) - The unique identifier for the request. - **msg** (string) - A message indicating the status of the operation. - **code** (integer) - The status code of the operation. - **data** (object) - Contains environment-specific data. - **containerCode** (integer) - The code for the container. - **coreVersion** (integer) - The core version number. ### Response Example ```json { "requestId": "8b558e5c5d1c437183c34aa03a09a368", "msg": "Success", "code": 0, "data": { "containerCode": 50591754, "coreVersion": 100 } } ``` ``` -------------------------------- ### Get Cloud Phone Products Source: https://api-docs.hubstudio.cn/380052338e0 Retrieves a list of available Cloud Phone products, including their specifications, pricing, and regional information. This endpoint is useful for understanding the offerings and costs associated with different Cloud Phone configurations. ```APIDOC ## GET /cloud-phone/products ### Description Retrieves a list of available Cloud Phone products, including their specifications, pricing, and regional information. ### Method GET ### Endpoint /cloud-phone/products ### Parameters #### Query Parameters None #### Request Body None ### Response #### Success Response (200) - **code** (integer) - Result code: 0 for success, others for failure. - **data** (array) - Business data containing product details. - **billingType** (integer) - Billing type: 1 for on-demand payment. - **id** (integer) - Product ID. - **origRunPrice** (number) - Original running price. - **origStoragePrice** (number) - Original storage price. - **productName** (string) - Product name. - **runPrice** (number) - Running price. - **showCpu** (string) - CPU specification. - **showMemory** (string) - Memory specification. - **showRegionId** (integer) - Region ID. - **showRegionName** (string) - Region name. - **showStorage** (string) - Storage specification. - **showSystem** (string) - System specification. - **storagePrice** (number) - Storage price. - **msg** (string) - Result message. #### Response Example ```json { "code": 0, "data": [ { "billingType": 1, "id": 20, "origRunPrice": 0.18, "origStoragePrice": 0.38, "productName": "基础版", "runPrice": 0.18, "showCpu": "2", "showMemory": "4", "showRegionId": 18, "showRegionName": "香港", "showStorage": "64", "showSystem": "Android 11.0", "storagePrice": 0.38 } ], "msg": "" } ``` ``` -------------------------------- ### Successful API Response Example Source: https://api-docs.hubstudio.cn/380052338e0 This JSON object represents a successful API response, detailing product information such as billing type, ID, pricing, and specifications. It includes result codes, business data, and messages. ```json { "code": 0, "data": [ { "billingType": 1, "id": 20, "origRunPrice": 0.18, "origStoragePrice": 0.38, "productName": "基础版", "runPrice": 0.18, "showCpu": "2", "showMemory": "4", "showRegionId": 18, "showRegionName": "香港", "showStorage": "64", "showSystem": "Android 11.0", "storagePrice": 0.38 } ], "msg": "" } ``` -------------------------------- ### OpenAPI Example Response Structure Source: https://api-docs.hubstudio.cn/380052377e0 Illustrates a typical successful response structure in OpenAPI, including fields like requestId, msg, code, and data. This format is common for API interactions. ```yaml example: requestId: 8b558e5c5d1c437183c34aa03a09a368 msg: Success code: 0 data: containerCode: 50591754 coreVersion: 100 ``` -------------------------------- ### Hubstudio Browser Advanced Fingerprint Parameters Configuration Source: https://api-docs.hubstudio.cn/380052378e0 This section outlines the advanced fingerprint parameters that can be configured for the Hubstudio browser. These parameters allow fine-grained control over how the browser presents itself to websites, enhancing privacy and security. ```APIDOC ## POST /api/v1/browser/config/advanced ### Description Configures advanced fingerprint parameters for the Hubstudio browser to enhance privacy and control information exposure. ### Method POST ### Endpoint /api/v1/browser/config/advanced ### Parameters #### Request Body - **containerCode** (string) - Required - The code of the container. - **containerName** (string) - Required - The name of the container. - **tagName** (string) - Required - The tag name associated with the configuration. - **coreVersion** (string) - Required - The core version of the browser. - **type** (string) - Required - The operating system type (windows/android/ios/macos). - **uaVersion** (string) - Optional - User agent version. - **ua** (string) - Optional - User agent string. - **languageType** (integer) - Optional - Language type setting. - **languages** (string) - Optional - List of supported languages. - **gmt** (string) - Optional - GMT offset. - **geography** (string) - Optional - Geographical location. - **geoTips** (string) - Optional - Geographical tips. - **geoRule** (string) - Optional - Geographical rule. - **longitude** (number) - Optional - Longitude coordinate. - **latitude** (number) - Optional - Latitude coordinate. - **radius** (number) - Optional - Radius for location. - **height** (integer) - Optional - Screen height. - **width** (integer) - Optional - Screen width. - **fontsType** (integer) - Optional - Font type setting. - **fonts** (string) - Optional - List of fonts. - **fontFingerprint** (string) - Optional - Font fingerprint string. - **webRtc** (integer) - Optional - WebRTC setting (0 or 1). - **webRtcLocalIp** (string) - Optional - WebRTC local IP address. - **canvas** (integer) - Optional - Canvas privacy setting (0 or 1). - **webgl** (integer) - Optional - WebGL privacy setting (0 or 1). - **hardwareAcceleration** (integer) - Optional - Hardware acceleration setting (0 or 1). - **webglInfo** (integer) - Optional - WebGL info setting (0 or 1). - **audioContext** (integer) - Optional - AudioContext privacy setting (0 or 1). - **speechVoices** (integer) - Optional - Speech voices setting (0 or 1). - **media** (integer) - Optional - Media device privacy setting (0 or 1). - **cpu** (integer) - Optional - CPU core count (2,4,6,8,10,12,16, or 0 for real). - **memory** (integer) - Optional - Memory size (2,4,6,8, or 0 for real). - **doNotTrack** (integer) - Optional - Do Not Track setting (0, 1, or 2). - **battery** (integer) - Optional - Battery privacy setting (0, 1, or 2). - **portScan** (integer) - Optional - Port scan detection setting (0 or 1). - **whiteList** (string) - Optional - Whitelist for specific settings. ### Request Example ```json { "containerCode": "189603333", "containerName": "Modify Environment Name", "tagName": "default", "coreVersion": "100.0.0", "type": "windows", "canvas": 0, "webgl": 1, "hardwareAcceleration": 1, "webglInfo": 0, "audioContext": 0, "speechVoices": 1, "media": 0, "cpu": 8, "memory": 4, "doNotTrack": 1, "battery": 0, "portScan": 0, "whiteList": "example.com" } ``` ### Response #### Success Response (200) - **requestId** (string) - Request ID. - **msg** (string) - Response message. - **code** (integer) - Business status code. - **data** (boolean) - Business data payload. #### Response Example ```json { "requestId": "68cb72ff72e9441da4fb84760937ead3", "msg": "Success", "code": 0, "data": true } ``` ``` -------------------------------- ### OpenAPI Server Configuration Source: https://api-docs.hubstudio.cn/380052367e0 Defines the server URL for testing environments. This configuration is part of the OpenAPI specification. ```yaml servers: - url: http://127.0.0.1:6873 description: 测试环境 ``` -------------------------------- ### POST /api/v1/container/add-account Source: https://api-docs.hubstudio.cn/380052370e0 Adds account information for a given environment. It handles different platform types (custom and built-in) and ensures unique account entries based on specific criteria. ```APIDOC ## POST /api/v1/container/add-account ### Description Adds account information for a given environment. It handles different platform types (custom and built-in) and ensures unique account entries based on specific criteria. ### Method POST ### Endpoint /api/v1/container/add-account ### Parameters #### Header Parameters - **Accept-Language** (string) - Optional - Default: zh-CN - The default request language. - **Authorization** (string) - Optional - Default: 'NULL' - Local API security check required, API Key from client. #### Request Body - **accountName** (string) - Required - Platform account. - **accountPassword** (string) - Required - Platform password. - **containerCode** (integer) - Required - Environment number. - **domainName** (string) - Optional - The domain name of the custom platform. - **name** (string) - Optional - Custom account name. - **otpSecret** (string) - Optional - 2FA secret key. - **siteAlias** (string) - Optional - Alias of the custom platform. - **siteName** (string) - Required - Platform name. ### Request Example ```json { "accountName": "zhanghao", "accountPassword": "password", "containerCode": 854921712, "domainName": "https://www.baidu.com", "name": "账号名称", "otpSecret": "otpSecret", "siteAlias": "自定义平台", "siteName": "自定义平台" } ``` ### Response #### Success Response (200) - **code** (integer) - Business status code. - **msg** (string) - Response message. - **requestId** (string) - Request ID. - **timestamp** (integer) - Timestamp. - **data** (boolean) - Business data carrier. #### Response Example ```json { "code": 0, "msg": "Success", "requestId": "5e4694a6369b46b09c1288c5efd8b905", "timestamp": 1756097123655, "data": true } ``` ``` -------------------------------- ### OpenAPI 3.0.1 规范 - APP 启动 API Source: https://api-docs.hubstudio.cn/380052356e0 这是一整个 OpenAPI 3.0.1 规范文件,定义了启动云手机中应用程序的 POST 请求。它包含了请求头、请求体、响应以及其他元数据。 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /api/v1/cloud-mobile/app/start: post: summary: APP启动 deprecated: false description: |- 启动云手机中安装的app ``` 云手机必须是开启的状态 ``` tags: - 云手机/应用管理 - 云手机/应用管理 parameters: - name: Accept-Language in: header description: 默认请求语言 example: zh-CN schema: type: string default: zh-CN - name: Authorization in: header description: Local API 开启安全校验必填,API Key来自客户端 example: 'NULL' schema: type: string default: 'NULL' requestBody: content: application/json: schema: type: object properties: mobileId: type: integer title: 云手机ID description: | 通过/api/v1/cloud-mobile/mobile-product-list获取 packageName: type: string title: 应用包名 description: | 通过/api/v1/cloud-mobile/app/installedList获取 required: - mobileId - packageName x-apifox-orders: - mobileId - packageName example: "{\r\n \"mobileId\": 0, // 云手机ID\r\n \"packageName\": \"\" // 应用包名\r\n}" responses: '200': description: '' content: application/json: schema: type: object properties: code: type: integer title: 业务状态码 msg: type: string title: 响应消息 data: type: boolean title: 业务数据载体 requestId: type: string title: 请求ID timestamp: type: integer title: 时间戳 x-apifox-orders: - code - msg - data - requestId - timestamp example: code: 0 msg: Success requestId: 07ece6731a5e4450b9dee2fdb09cb6ee timestamp: 1742289013309 data: true headers: {} x-apifox-name: 成功 security: [] x-apifox-folder: 云手机/应用管理 x-apifox-status: released x-run-in-apifox: https://app.apifox.com/web/project/7443932/apis/api-380052356-run components: schemas: {} securitySchemes: {} servers: - url: http://127.0.0.1:6873 description: 测试环境 security: [] ``` -------------------------------- ### OpenAPI Specification Structure Source: https://api-docs.hubstudio.cn/380052350e0 This snippet shows a partial OpenAPI Specification, including version details, server URLs, and descriptions. It is typically used for API documentation and client generation. ```yaml versionName: 7.37.0 installStatus: -1 groupId: '-1' total: 10 size: 10 current: 1 orders: [] optimizeCountSql: true hitCount: false countId: null maxLimit: null searchCount: true pages: 1 headers: {} x-apifox-name: 成功 security: [] x-apifox-folder: 云手机/应用管理 x-apifox-status: released x-run-in-apifox: https://app.apifox.com/web/project/7443932/apis/api-380052350-run components: schemas: {} securitySchemes: {} servers: - url: http://127.0.0.1:6873 description: 测试环境 security: [] ``` -------------------------------- ### OpenAPI Specification for Add Environment Account Source: https://api-docs.hubstudio.cn/380052370e0 This OpenAPI 3.0.1 specification defines the API endpoint for adding environment accounts. It includes details on the request body, parameters, and expected responses. Note the specific logic for custom and built-in platforms. ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /api/v1/container/add-account: post: summary: 添加环境账号 deprecated: false description: >- 为环境添加账号信息 ```text 注意: - 当 siteName 为 "自定义平台" 时,系统会判断此为自定义平台。如果 domainName 相同,则不会新增账号记录。 - 当 siteName 为官方内置平台名称(如“加拿大亚马逊”)时,系统会判断此为内置平台。需要平台名称 (siteName) 和平台账号 (accountName) 都相同,才不会被添加;如果其中任何一个不同,都会添加一条新的账号记录。 ``` tags: - 平台账号管理 parameters: - name: Accept-Language in: header description: 默认请求语言 example: zh-CN schema: type: string default: zh-CN - name: Authorization in: header description: Local API 开启安全校验必填,API Key来自客户端 example: 'NULL' schema: type: string default: 'NULL' requestBody: content: application/json: schema: type: object properties: accountName: type: string title: 平台账号 accountPassword: type: string title: 平台密码 containerCode: type: integer title: 环境编号 domainName: type: string title: 自定义平台的域名 name: type: string title: 自定义账号名称 otpSecret: type: string title: 2FA密钥 siteAlias: type: string title: 自定义平台的别名 siteName: type: string title: 平台名称 required: - accountName - siteName - accountPassword - containerCode x-apifox-orders: - accountName - accountPassword - containerCode - domainName - name - otpSecret - siteAlias - siteName example: "{\r\n \"accountName\": \"zhanghao\", // 平台账号\r\n\r\n \"accountPassword\": \"password\", // 平台密码\r\n\r\n \"containerCode\": 854921712, // 环境编号\r\n\r\n \"domainName\": \"https://www.baidu.com\", // 自定义平台的域名\r\n\r\n \"name\": \"账号名称\", // 自定义账号名称\r\n\r\n \"otpSecret\": \"otpSecret\", // 2FA密钥\r\n\r\n \"siteAlias\": \"自定义平台\", // 自定义平台的别名\r\n\r\n \"siteName\": \"自定义平台\" // 平台名称\r\n\r\n}" responses: '200': description: '' content: application/json: schema: type: object properties: code: type: integer title: 业务状态码 msg: type: string title: 响应消息 requestId: type: string title: 请求ID timestamp: type: integer title: 时间戳 data: type: boolean title: 业务数据载体 x-apifox-orders: - code - msg - requestId - timestamp - data example: code: 0 msg: Success requestId: 5e4694a6369b46b09c1288c5efd8b905 timestamp: 1756097123655 data: true headers: {} x-apifox-name: 成功 security: [] x-apifox-folder: 平台账号管理 x-apifox-status: released x-run-in-apifox: https://app.apifox.com/web/project/7443932/apis/api-380052370-run components: schemas: {} securitySchemes: {} servers: - url: http://127.0.0.1:6873 description: 测试环境 security: [] ``` -------------------------------- ### APP 启动 API 请求体示例 Source: https://api-docs.hubstudio.cn/380052356e0 此示例展示了启动云手机中应用程序所需的 JSON 请求体。请确保提供正确的 `mobileId` 和 `packageName`。 ```json { "mobileId": 0, // 云手机ID "packageName": "" // 应用包名 } ``` -------------------------------- ### APP 启动 API 响应示例 Source: https://api-docs.hubstudio.cn/380052356e0 此示例展示了成功启动云手机中应用程序后的 JSON 响应格式。响应包含业务状态码、消息、数据载体、请求 ID 和时间戳。 ```json { "code": 0, "msg": "Success", "requestId": "07ece6731a5e4450b9dee2fdb09cb6ee", "timestamp": 1742289013309, "data": true } ``` -------------------------------- ### Account Deletion API Specification Source: https://api-docs.hubstudio.cn/380052369e0 OpenAPI 3.0.1 specification for the account deletion endpoint. This defines the request body, including the required `accountIds` array, and the structure of the successful response. ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /api/v1/account/del: post: summary: 账号删除 deprecated: false description: |- 删除账号信息 ```text - 请求体不能为空,必须包含 accountIds 字段。可以传空数组 {},但不能完全不传请求体。 - accountIds 数组不能为空,必须包含至少一个账号ID。 - 可以同时传入多个账号ID进行批量删除。 - 该操作具有原子性,如果提供的账号ID列表中有一个不存在,则整个删除操作都会失败,不会删除任何账号。 ``` tags: - 平台账号管理 parameters: - name: Accept-Language in: header description: 默认请求语言 example: zh-CN schema: type: string default: zh-CN - name: Authorization in: header description: Local API 开启安全校验必填,API Key来自客户端 example: 'NULL' schema: type: string default: 'NULL' requestBody: content: application/json: schema: type: object properties: accountIds: type: array items: type: integer description: 例:[1111],可以通过/api/v1/account/list获得 title: 账号ID数组 required: - accountIds x-apifox-orders: - accountIds example: accountIds: - 28842 responses: '200': description: '' content: application/json: schema: type: object properties: code: type: integer title: 业务状态码 msg: type: string title: 响应消息 requestId: type: string title: 请求ID timestamp: type: integer title: 时间戳 data: type: boolean title: 业务数据载体 x-apifox-orders: - code - msg - requestId - timestamp - data headers: {} x-apifox-name: 成功 security: [] x-apifox-folder: 平台账号管理 x-apifox-status: released x-run-in-apifox: https://app.apifox.com/web/project/7443932/apis/api-380052369-run components: schemas: {} securitySchemes: {} servers: - url: http://127.0.0.1:6873 description: 测试环境 security: [] ``` -------------------------------- ### POST /api/v1/account/del Source: https://api-docs.hubstudio.cn/380052369e0 Deletes account information. It requires an array of account IDs in the request body. The operation is atomic; if any account ID is invalid, the entire operation fails. ```APIDOC ## POST /api/v1/account/del ### Description Deletes account information. It requires an array of account IDs in the request body. The operation is atomic; if any account ID is invalid, the entire operation fails. ### Method POST ### Endpoint /api/v1/account/del ### Parameters #### Header Parameters - **Accept-Language** (string) - Optional - Default: zh-CN - The default request language. - **Authorization** (string) - Optional - Default: 'NULL' - Local API security check is required, API Key is from the client. ### Request Body - **accountIds** (array of integers) - Required - An array of account IDs. Example: [1111]. Can be obtained via /api/v1/account/list. ### Request Example ```json { "accountIds": [ 28842 ] } ``` ### Response #### Success Response (200) - **code** (integer) - Business status code. - **msg** (string) - Response message. - **requestId** (string) - Request ID. - **timestamp** (integer) - Timestamp. - **data** (boolean) - Business data carrier. #### Response Example ```json { "code": 0, "msg": "string", "requestId": "string", "timestamp": 0, "data": true } ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.