菜单

分享云手机

使用说明

分享云手机

请求说明

POST /api/v1/cloudPhone/share

请求参数

参数 类型 必需 说明
share array 分享云手机配置

share

参数 类型 必需 说明
image_ids array 云手机IDs
config Object 具体配置信息,不传则采用默认配置

config

参数 类型 必需 说明
share_status integer 分享开关,1 是;2 否,默认关闭
share_phone_type integer 开机方式,1 包月开机优先;2 包月开机;3 临时开机,默认包月开机优先
share_code string 分享密码,格式须符合:长度 8-20 位,数字和大小字母的组合,默认随机生成
share_auth array 功能权限,1 一键新机; 2 恢复出厂; 3 修改参数; 4 云盘,默认为空

请求示例

json 复制代码
{
    "share": [
        {
            "image_ids": [
                "xxx",
                "xxx"
            ],
            "config": {
                "share_status": 1,
                "share_phone_type": 3,
                "share_code": "xxxxxxxx",
                "share_auth": [
                    3,
                    4
                ]
            }
        },
        {
            "image_ids": [
                "xxx"
            ],
            "config": {
                "share_status": 2
            }
        },
        {
            "image_ids": [
                "xxx"
            ]
        }
    ]
}

返回示例

json 复制代码
{
    "code": 200,
    "data": {
        "xxxx": "https://xxxxxx?id=xxxx&name=xxx#password=xxx",  // 云手机ID: 分享链接
        "xxxx": ""    // 关闭分享则链接为空
    },
    "message": "Success"
}
上一个
云机写入短信
下一个
包月开机管理
最近修改: 2026-03-18Powered by