import BeaverdockAPI from 'beaverdock-api';
const client = new BeaverdockAPI({
apiKey: process.env['BEAVERDOCK_API_API_KEY'], // This is the default and can be omitted
});
const response = await client.pet.uploadImage(0, fs.createReadStream('path/to/file'));
console.log(response.code);