Getting script details

Each Script object has its own URL: http://api.rebrandly.com/v1/scripts/:id, where :id is the unique identifier of the script.
To get Script object details, you should HTTP GET on the specific scripts endpoint, and a JSON object representing the script will be returned.

PATH PARAMETERS

Path parameterDescription
idUnique identifier of the script you want to get details for
GETting script details
$ curl \
-s http://api.rebrandly.com/v1/scripts/3aehje9d536s46d59ba5bcf49b582ear \
-H 'Accept: application/json'
-H 'Authorization: Bearer YOUR_TOKEN_HERE'

HTTP/1.1 200 OK
JSON Response (script details)
{
  "id": "3aehje9d536s46d59ba5bcf49b582ear",
  "name": "Alert",
  "value": "<script>alert('test');</script>",
  "uri": "https://s3.amazonaws.com/rb-scripts/user/3aehje9d536s46d59ba5bcf49b582ear"
}