分享云手机
POST /api/v1/cloudPhone/share
| 参数 | 类型 | 必需 | 说明 |
|---|---|---|---|
| share | array | 是 | 分享云手机配置 |
| 参数 | 类型 | 必需 | 说明 |
|---|---|---|---|
| image_ids | array | 是 | 云手机IDs |
| config | Object | 否 | 具体配置信息,不传则采用默认配置 |
| 参数 | 类型 | 必需 | 说明 |
|---|---|---|---|
| share_status | integer | 否 | 分享开关,1 是;2 否,默认关闭 |
| share_phone_type | integer | 否 | 开机方式,1 包月开机优先;2 包月开机;3 临时开机,默认包月开机优先 |
| share_code | string | 否 | 分享密码,格式须符合:长度 8-20 位,数字和大小字母的组合,默认随机生成 |
| share_auth | array | 否 | 功能权限,1 一键新机; 2 恢复出厂; 3 修改参数; 4 云盘,默认为空 |
{
"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"
]
}
]
}
{
"code": 200,
"data": {
"xxxx": "https://xxxxxx?id=xxxx&name=xxx#password=xxx", // 云手机ID: 分享链接
"xxxx": "" // 关闭分享则链接为空
},
"message": "Success"
}