petfinder-com/petfinder-js-sdk

Can you include this api call?

catbai opened this issue · 2 comments

Can you augment the api to include calls to 'types'?
GET https://api.petfinder.com/v2/types'

You should be able to get animal types by using the following:

var pf = new petfinder.Client({apiKey: 'my-api-key', secret: 'my-api-secret'});

pf.animalData.types()
    .then(function (response) {
        // Do something with `response.data.types`
    })

Thank you!