List all pets.
client.pets.list(RequestOptionsoptions?): PetListResponse { name, photoUrls, id, 3 more }
/pet
List all pets.
Returns
List all pets.
import Barkend from 'barkend';
const client = new Barkend({
apiKey: process.env['BARKEND_API_KEY'], // This is the default and can be omitted
});
const pets = await client.pets.list();
console.log(pets);
[
{
"name": "doggie",
"photoUrls": [
"string"
],
"id": 10,
"category": {
"id": 1,
"name": "Dogs"
},
"status": "available",
"tags": [
{
"id": 0,
"name": "name"
}
]
}
]
Returns Examples
[
{
"name": "doggie",
"photoUrls": [
"string"
],
"id": 10,
"category": {
"id": 1,
"name": "Dogs"
},
"status": "available",
"tags": [
{
"id": 0,
"name": "name"
}
]
}
]