API Reference
Reference for the API
JavaScript
import Dasdk from 'dasdk'; const client = new Dasdk({ apiKey: 'My API Key', }); const pet = await client.pet.retrieve(0); console.log(pet.id);
{ "name": "doggie", "photoUrls": [ "<string>" ], "id": 10, "category": { "id": 1, "name": "Dogs" }, "tags": [ { "id": 123, "name": "<string>" } ], "status": "available" }
Returns a single pet
ID of pet to return
successful operation
"doggie"
10
Show child attributes
1
"Dogs"
pet status in the store
available
pending
sold