Lybic Docs

预览沙箱

截取沙箱的截图并获取光标位置。

POST
/api/orgs/{orgId}/sandboxes/{sandboxId}/preview

截取沙箱的截图并获取光标位置。

Path Parameters

sandboxId*string

沙箱 ID

orgId*string

组织 ID

Request Body

application/json

screenShotPutUrl?string

Optional screenshot upload URL, passed through to redshift for BYO storage.

Formaturi

Response Body

application/json

curl -X POST "https://loading/api/orgs/string/sandboxes/string/preview" \  -H "Content-Type: application/json" \  -d '{}'
{
  "screenShot": "http://example.com",
  "cursorPosition": {
    "x": 0,
    "y": 0,
    "screenWidth": 0,
    "screenHeight": 0,
    "screenIndex": 0
  },
  "actionResult": null
}