Adopt-a-Pet
Adopt-a-Pet API Client for Node
Installation
- Install Node LTS
npm i adopt-a-pet
Setup
- Get API keys for your shelter
- Set API key and ShelterId to environment variables: (optional)
export ADOPT_API_KEY=xxx
export SHELTER_ID=90641
Usage:
const AdoptPet = // Instantiate the adopt-a-pet API Client// Parameters are not required if environment variables are setconst adoptPet = shelterId apiKey //// Get all pets for current shelter//adoptPet; //// Get a random pet from the list of current shelter pets//adoptPet //// Get pet details using a petId and boolean to limit details//adoptPet;