- 自动化接口
- 截图
- 动作
- 启停自动化
- 相册
- 其他
- 中控接口
- 辅助助手接口
多点触摸
开发中
POST
/openapi/multiTouch
请求参数
Body 参数application/json
deviceId
string
设备ID
finger1
array [object {5}]
手指1
action
integer
必需
x
integer
X坐标
y
integer
Y坐标
pointer
integer
必需
delay
integer
必需
finger2
array [object {5}]
手指2
action
integer
必需
x
integer
必需
y
integer
必需
pointer
integer
必需
delay
integer
必需
finger3
array [object {5}]
手指3
action
integer
必需
x
integer
必需
y
integer
必需
pointer
integer
必需
delay
integer
必需
finger4
array [object {5}]
手指4
action
integer
必需
x
integer
必需
y
integer
必需
pointer
integer
必需
delay
integer
必需
finger5
array [object {5}]
手指5
action
integer
必需
x
integer
必需
y
integer
必需
pointer
integer
必需
delay
integer
必需
示例
{
"deviceId": "6a290cdc0b6db0565955355b157acc090e33f76e",
"finger1": [
{
"action": 0,
"x": 500,
"y": 200,
"pointer": 1,
"delay": 1
},
{
"action": 2,
"x": 500,
"y": 200,
"pointer": 1,
"delay": 20
},
{
"action": 2,
"x": 500,
"y": 300,
"pointer": 1,
"delay": 20
}
],
"finger2": [
{
"action": 0,
"x": 500,
"y": 200,
"pointer": 2,
"delay": 1
},
{
"action": 2,
"x": 500,
"y": 200,
"pointer": 2,
"delay": 20
},
{
"action": 2,
"x": 500,
"y": 300,
"pointer": 2,
"delay": 20
}
],
"finger3": [
{
"action": 0,
"x": 200,
"y": 200,
"pointer": 3,
"delay": 1
},
{
"action": 2,
"x": 300,
"y": 200,
"pointer": 3,
"delay": 201
},
{
"action": 2,
"x": 400,
"y": 300,
"pointer": 3,
"delay": 201
}
],
"finger4": [
{
"action": 0,
"x": 200,
"y": 200,
"pointer": 4,
"delay": 1
},
{
"action": 2,
"x": 300,
"y": 200,
"pointer": 4,
"delay": 201
},
{
"action": 2,
"x": 400,
"y": 300,
"pointer": 4,
"delay": 201
}
],
"finger5": [
{
"action": 0,
"x": 200,
"y": 200,
"pointer": 5,
"delay": 1
},
{
"action": 2,
"x": 300,
"y": 200,
"pointer": 5,
"delay": 201
},
{
"action": 2,
"x": 400,
"y": 300,
"pointer": 5,
"delay": 201
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/openapi/multiTouch' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceId": "6a290cdc0b6db0565955355b157acc090e33f76e",
"finger1": [
{
"action": 0,
"x": 500,
"y": 200,
"pointer": 1,
"delay": 1
}, {
"action": 2,
"x": 500,
"y": 200,
"pointer": 1,
"delay": 20
}, {
"action": 2,
"x": 500,
"y": 300,
"pointer": 1,
"delay": 20
}
],
"finger2": [
{
"action": 0,
"x": 500,
"y": 200,
"pointer": 2,
"delay": 1
}, {
"action": 2,
"x": 500,
"y": 200,
"pointer": 2,
"delay": 20
}, {
"action": 2,
"x": 500,
"y": 300,
"pointer": 2,
"delay": 20
}
],
"finger3": [
{
"action": 0,
"x": 200,
"y": 200,
"pointer": 3,
"delay": 1
}, {
"action": 2,
"x": 300,
"y": 200,
"pointer": 3,
"delay": 201
}, {
"action": 2,
"x": 400,
"y": 300,
"pointer": 3,
"delay": 201
}
],
"finger4": [
{
"action": 0,
"x": 200,
"y": 200,
"pointer": 4,
"delay": 1
}, {
"action": 2,
"x": 300,
"y": 200,
"pointer": 4,
"delay": 201
}, {
"action": 2,
"x": 400,
"y": 300,
"pointer": 4,
"delay": 201
}
],
"finger5": [
{
"action": 0,
"x": 200,
"y": 200,
"pointer": 5,
"delay": 1
}, {
"action": 2,
"x": 300,
"y": 200,
"pointer": 5,
"delay": 201
}, {
"action": 2,
"x": 400,
"y": 300,
"pointer": 5,
"delay": 201
}
]
}'
返回响应
🟢200成功
application/json
Body
code
integer
0 成功 其他失败
data
boolean
必需
msg
string
错误消息
示例
{
"code": 0,
"data": true
}
修改于 2022-07-23 04:21:58