Skip to main content
POST
/
open
/
api
/
phone
/
action
/
drag
phone operate - drag
curl --request POST \
  --url https://user.pmock.com/api/open/api/phone/action/drag \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>",
  "posType": 1,
  "posType2": 1,
  "query": [
    "<string>"
  ],
  "query2": [
    "<string>"
  ],
  "pos1": [
    123
  ],
  "pos2": [
    123
  ],
  "range1": [
    123
  ],
  "range2": [
    123
  ],
  "duration": 123,
  "durationRange": [
    123
  ]
}
'
{
  "traceId": "",
  "code": 0,
  "msg": "",
  "data": 0,
  "status": ""
}

Body

application/json
code
string
required

phone code

posType
integer
default:1

位置类型:1=节点,2=固定坐标,3=范围位置 position1 type:1=query,2=coordinate,3=coordinate range

posType2
integer
default:1

位置类型:1=节点,2=固定坐标,3=范围位置 position2 type:1=query,2=coordinate,3=coordinate range

query
string[]

query1:[key=value,key=value,...]

query2
string[]

query2:[key=value,key=value,...]

pos1
integer[]

坐标 X,Y coordinate1:[X,Y]

pos2
integer[]

x2,y2 coordinate2:[X,Y]

range1
integer[]

[x1,y1,x2,y2] coordinate range1:[X1,Y1,X2,Y2]

range2
integer[]

[x1,y1,x2,y2] coordinate range2:[X1,Y1,X2,Y2]

duration
integer

duration

durationRange
integer[]

持续时长范围 duration range

Response

200 - application/json
traceId
string
required

Request link ID

code
integer
required

code

msg
string
required

Request return message

status
string
default:finish
required

Status, representing whether this is an instant completion or waiting state, finish or pending

data
integer<int64>

Request return data