Get script

Get a specific script from your account.


GET/api/scripts/{script}

Get a script

Returns the details of a specific script.

Request

GET
/api/scripts/{script}
curl -X GET "https://ploi.io/api/scripts/{script}" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"

Response

{
  "data": {
    "id": 1,
    "user": "ploi",
    "label": "Echo Script",
    "content": "echo 123",
    "created_at": "2019-08-07 11:21:02"
  }
}