Python
import os from skylight_sdk import Skylight with Skylight( apikey=os.getenv("SKYLIGHT_APIKEY", ""), ) as skylight: res = skylight.interact.drag(instance_id="<id>", path=[ { "x": 100, "y": 200, }, ], step=5) # Handle response print(res)
{ "message": "<string>", "status": "<string>" }
Perform a drag operation along a path of coordinates
Requires API key authentication.
API key authentication
Show child attributes
left
right
middle
Optional step size for drag movements. If not provided, movement will be continuous.
1 <= x <= 100
Successfully performed drag operation
Status of the operation
"success"
Human-readable status message