Skip to main content
POST
/
phones
/
{phone_id}
/
drag
Drag
curl --request POST \
  --url https://api.example.com/phones/{phone_id}/drag
Execute a drag gesture from one point to another.

Request

curl -X POST https://api.tapkit.ai/phones/{phone_id}/drag \
  -H "X-API-Key: TK_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"from_x": 100, "from_y": 200, "to_x": 300, "to_y": 400}'

Request Body

{
  "from_x": 100,
  "from_y": 200,
  "to_x": 300,
  "to_y": 400
}
FieldTypeDescription
from_xintegerStarting X coordinate
from_yintegerStarting Y coordinate
to_xintegerEnding X coordinate
to_yintegerEnding Y coordinate

Use Cases

  • Move elements
  • Adjust sliders
  • Pull to refresh