Leap0

Drag

Drag from one coordinate to another.

POST/api/input/drag

Drag from one coordinate to another.

Authorization

BearerAuth
AuthorizationBearer <token>

API key passed as a Bearer token.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

from_x*integer
Range0 <= value
from_y*integer
Range0 <= value
to_x*integer
Range0 <= value
to_y*integer
Range0 <= value
button?integer

Mouse button: 1 = left, 2 = middle, 3 = right.

Default1
Range1 <= value <= 3

Response Body

application/json

application/json

curl -X POST "https://<sandbox_id>.sandbox.leap0.dev/api/input/drag" \  -H "Content-Type: application/json" \  -d '{    "from_x": 0,    "from_y": 0,    "to_x": 0,    "to_y": 0  }'
{  "x": 720,  "y": 450}
{  "message": "Invalid request",  "errors": [    {      "field": "string",      "error": "string"    }  ]}