Skip to content

PetfindeR 2.0.0 Release!

Compare
Choose a tag to compare
@aschleg aschleg released this 26 Aug 20:52
· 17 commits to master since this release

New major release coinciding with the release of v2.0 of the Petfinder API! The legacy version of the Petfinder API, v1.0, will be retired in January 2020, therefore, the PetfindeR library has been updated almost from the ground up to be compatible as possible with the new version of the Petfinder API! The new version of the Petfinder API is a huge improvement over the legacy version, with many changes and additions to
the design of the API itself.

Below is a summary of all the changes made in the release of PetfindeR 2.0.

  • The following methods have been added to PetfindeR to make it compatible with v2.0 of the Petfinder API.
    • animal_types() is used to getting animal types (or type) available from the Petfinder API. The release of v2.0 of the Petfinder API added several endpoints for accessing animal types in the Petfinder database. This method wraps both Petfinder API endpoints for getting animal types. More information on the animal type endpoints in the Petfinder API can be found in its documentation:
  • breeds() is the new method for getting available animal breeds from the Petfinder database. The API endpoint documentation is available on the Petfinder API documentation page.
  • animals() is the method for extracting animal data available on the Petfinder API and deprecates the
    pets() related methods. The method wraps both the animals and animal/{id} endpoints of the Petfinder API. The documentation for these endpoints can be
    found in the Petfinder API documentation:
  • organizations() is now the method for extracting animal welfare organization data available on Petfinder
    and deprecates previous shelter() related methods and endpoints. The organizations() method wraps both
    the Petfinder API organizations and organizations/{id} endpoints. The Petfinder API documentation for
    these two endpoints can be found below:
  • The following methods have been removed as they are no longer valid endpoints with the release of v2.0 of the Petfinder API.
    • pet.getRandom
    • shelter.getPets
    • shelter.listByBreed