Package PetfindeR. R topics documented: May 22, Type Package Title 'Petfinder' API Wrapper Version Author Aaron Schlegel

Similar documents
Package TurtleGraphics

PNCC Dogs Online. Customer Transactions Manual

6.14(a) - How to Run CAT Reports Record Errors Report

User Manual. Senior Project Mission Control. Product Owner Charisse Shandro Mission Meow Cat Rescue and Adoptions, Inc.

INFO 1103 Homework Project 2

Pasco County Animal Services

Petfinder.com The Adopted Dog Bible: Your One- Stop Resource For Choosing, Training, And Caring For Your Sheltered Or Rescued Dog By Petfinder.

PNCC Dogs Online. Customer Transactions Manual

KB Record Errors Report

b. vulnerablebreeds.csv Statistics on vulnerable breeds for the years 2003 through 2015 [1].

Pasco County Animal Services

2010 Canadian Computing Competition Day 1, Question 1 Barking Dogs!

Lab 10: Color Sort Turtles not yet sorted by color

DOG(S) I AM INTERESTED IN

Pasco County Animal Services

Shell (cont d) SSE2034: System Software Experiment 3, Fall 2018, Jinkyu Jeong

Please complete all fields that apply to you and mail the application to the address at the bottom of the last page.

Pal s Place Rescue. Dog Adoption Application. [Please complete and to: Dog s Name : Date:

Getting Started! Searching for dog of a specific breed:

Check the box after reviewing with your staff. DNA Collection Kit (Cheek Swab) Mailing a DNA Cheek Swab to BioPet. Waste Sample Collection

GOLDEN RETRIEVER CLUB OF ILLINOIS, INC. MEMBERSHIP SURVEY

- Adoption Application Instructions

Supporting document Antibiotics monitoring Short database instructions for veterinarians

Dog Adoption Application Form

DOG ADOPTION APPLICATION

Annex III : Programme for the control and eradication of Transmissible Spongiform Encephalopathies submitted for obtaining EU cofinancing

Find g a Néw Home før Your Gøld~n

Using social media research methods to identify hidden churches

Pasco County Animal Services

CHESAPEAKE RETRIEVER RESCUE OF WI ADOPTION APPLICATION

SARG Guide Surrey Amphibian and Reptile Group. SARG Reptile Surveyor s Guide Using SARGWEB. April 2012 Version 1.0. Steve Langham

Seattle Humane s. 27th Annual. May 7, 2016 Hyatt Regency Bellevue Auction Dinner Pet Runway Show. seattlehumane.org/tuxes. Sponsorship Opportunities

Pasco County Animal Services

Maximizing Movement through Your Shelter: Daily Rounds Round-Up

Adoption/Foster APPLICATION

9/21/2009. Who knows the ASPCA? Community Outreach. Meet Your Match Programs. The Community Outreach Team

PLEASE FILL OUT ALL INFORMATION IN THE VETERINARY RELEASE BOX BELOW. APPLICATION CANNOT BE PROCESSED WITHOUT THE INFORMATION:

Pasco County Animal Services

Pasco County Animal Services

A characterisation for markings of the smooth snake (Coronella austriaca)

PARCA. DoD EVM Policy Initiatives. Mr. John McGregor PARCA Deputy Director for EVM. NDIA IPMD Meeting August 29, 2018

SECTION P EXEMPTION FROM ANIMAL WELFARE STANDARDS (AMENDMENT) This application is used to request an exemption from animal welfare standards.

Fast Tracking to Save Lives: Simple to Systematic ASPCA. All Rights Reserved.

Pasco County Animal Services

Adoption Application

Title: Let s all take care of our pets. Category: years

Eddy s K9 Rescue Adoption Agreement

SAVING GRACE ANIMAL SANCTUARY CANADA & PASSIONATE PAWS LTD. DOG ADOPTION QUESTIONNAIRE

City of Sacramento City Council 915 I Street, Sacramento, CA,

Adoption Application

INFO 1103 Homework Project 1

CAT ADOPTION APPLICATION

City of Sacramento City Council 915 I Street, Sacramento, CA,

Dasher Web Service USER/DEVELOPER DOCUMENTATION June 2010 Version 1.1

Texas 4-H/FFA Heifer Validation Program

BOSTON TERRIER RESCUE CANADA

Signature: Date: Name Printed: Signature: Date: Name Printed:

Powerful Programs to Get to Zero S H A R O N H A R M O N, C A W A O R E G O N H U M A N E S O C I E T Y

FIF CAT WG Discussion Document Firm-Designated ID Walk-Through Originally Submitted: April 8, 2013, Updated August 5, 2014

COMPARING DNA SEQUENCES TO UNDERSTAND EVOLUTIONARY RELATIONSHIPS WITH BLAST

ASPCA: Free Over Three Adult Cat Promotion

PITS TO PETS RESCUE - ADOPTION APPLICATION

The Signet Guide to.. providing electronic sheep data

Bill of Sale and Contract SAMPLE IDENTIFICATION INFORMATION:

Animal House Sanctuary We don t just find homes, We find Families

REFERENCE COPY. FILE: ECG Critical EXPLANATION: ANIMALS ON DISTRICT PROPERTY

ADOPTION QUESTIONNAIRE

Midwest City Animal Welfare 7221 NE 36 th St. Midwest City, OK (405)

Controllability of Complex Networks. Yang-Yu Liu, Jean-Jacques Slotine, Albert-Laszlo Barbasi Presented By Arindam Bhattacharya

RUBBER NINJAS MODDING TUTORIAL

2017 Super Survey. Agency Information Super Survey. Profile of Your Agency. * 1. Address

Volume XV, Advanced Edition 6 n2y.com. some dogs do more than just play. Some dogs do special jobs for us, and

Adoption/Foster Application - Feline

NICK CULLEN INTERIM DIRECTOR

Foster Application - DOG

LANNCU39 - SQA Unit Code F8J9 04 Plan, monitor and evaluate the accommodation of animals

APPLICATION FOR LIVE ANIMAL USE IN TEACHING AT COASTAL ALABAMA COMMUNITY COLLEGE

Photo courtesy of PetSmart Charities, Inc., and Sherrie Buzby Photography. Community Cat Programs Handbook. CCP Operations: Intake of Cats and Kittens

Proposed Research and Public Consultation Framework: Banning the Resale of Cats and Dogs in Pet Stores

FairEntry Glossary. FairEntry Setup

Subdomain Entry Vocabulary Modules Evaluation

Texel Sheep Society. Basco Interface Guide. Contents

Michigan Humane Society Canine Behavior Evaluation Program Progress Report May 23, 2012

So you want to be a foster home

Placer SPCA open admission shelter Annual total intake = ~4000 Annual cat intake = ~2400 For 2012: Total cat intake = 2411, adoptions = 1558 Average

SPONSORSHIP PACKAGE SUPPORTING THE VICTORIA HUMANE SOCIETY

Dog Adoption Application for

ENTRY CLERK MANUAL FOR THE ENTRYCLERK.CFA.ORG WEB APPLICATION. Page 1

Bookmark this page:

ADOPTION APPLICATION INCOMPLETE APPLICATIONS WILL NOT BE PROCESSED

German Shepherd Rescue of New England, Inc. Adoption Application

GEODIS 2.0 DOCUMENTATION

Australian and New Zealand College of Veterinary Scientists. Membership Examination. Veterinary Epidemiology Paper 1

11/30/2013. The first person our visitors meet! Every visitor should have the best possible experience regardless of why they came here.

5 State of the Turtles

Content Delivery Network Interconnection (CDNI) Request Routing: CDNI Footprint and Capabilities Advertisement using ALTO

Kansas Humane Society: Waived Adoption Fees for Adult Cats

Import control of meat

A Peek Into the World of Streaming

Fostering Q&A. Indy Homes for Huskies

Transcription:

Type Package Title 'Petfinder' API Wrapper Version 1.1.3 Author Aaron Schlegel Package PetfindeR May 22, 2018 Maintainer Aaron Schlegel <aaron@aaronschlegel.com> Wrapper of the 'Petfinder API' <https://www.petfinder.com/developers/api-docs> that implements methods for interacting with and extracting data from the 'Petfinder' database. The 'Petfinder REST API' allows access to the 'Petfinder' database, one of the largest online, searchable databases of adoptable animals and animal welfare organizations across North America. Encoding UTF-8 LazyData true Imports dplyr, httr, jsonlite, plyr RoxygenNote 6.0.1 License MIT + file LICENSE URL https://github.com/aschleg/petfinder VignetteBuilder knitr Suggests R6, httptest, testthat, knitr, rmarkdown NeedsCompilation no Repository CRAN Date/Publication 2018-05-22 12:23:55 UTC R topics documented: breed.list........................................... 2 pet.find........................................... 3 pet.get............................................ 4 pet.getrandom....................................... 5 Petfinder........................................... 6 shelter.find.......................................... 6 1

2 breed.list shelter.get.......................................... 7 shelter.getpets........................................ 8 shelter.listbybreed..................................... 9 Index 10 breed.list Method for calling the breed.list method of the Petfinder API. Returns the available breeds for the selected animal. Method for calling the breed.list method of the Petfinder API. Returns the available breeds for the selected animal. breed.list(animal, = TRUE) animal Return breeds of animal. Must be one of barnyard, bird, cat, dog, horse, reptile, or smallfurry. List of returned JSON from the Petfinder API. If the parameter is TRUE, is returned instead. pf$breed.list('cat') pf$breed.list('dog')

pet.find 3 pet.find Returns of pet records matching input parameters. Returns of pet records matching input parameters. pet.find(location, animal = NULL, breed = NULL, size = NULL, sex = NULL, age = NULL, offset = NULL, count = NULL, output = NULL, pages = NULL, = FALSE) location animal breed size sex age offset ZIP/postal code, state, or city and state to perform the search. Return breeds of animal. Must be one of barnyard, bird, cat, dog, horse, reptile, or smallfurry. Specifies the breed of the animal to search. Specifies the size of the animal/breed to search. Must be one of S (small), M (medium), L (large), XL (extra-large). Filters the search to the desired gender of the animal. Must be one of M (male) or F (female). Returns animals with specified age. Must be one of Baby, Young, Adult, Senior. Can be set to the value of lastoffset returned from the previous call to retrieve the next set of results. The pages parameter can also be used to pull a desired number of paged results. count The number of records to return. Default is 25. output pages Sets the amount of information returned in each record. basic returns a simple record while full returns a complete record with description. Defaults to basic. The number of pages of results to return. For example, if pages=4 with the default count parameter (25), 125 results would be returned (25 results from first call and 100 from the next four pages). data.frame of pet records matching input parameters.

4 pet.get pf$pet.find('wa') pf$pet.find('wa', 'cat', pages = 2) pet.get Returns the available pet record data for the input pet Ids. Returns the available pet record data for the input pet Ids. pet.get(petid, = FALSE) petid ID of the pet record to return. Accepts a character for a single record or a list or vector of petids. data.frame of input petid(s). pf$pet.get(petid) petids <- c(petid1, petid2, petid3) pf$pet.get(petids)

pet.getrandom 5 pet.getrandom Returns a randomly selected pet record. The possible result can be filtered with input parameters. Returns a randomly selected pet record. The possible result can be filtered with input parameters. pet.getrandom(records = NULL, animal = NULL, breed = NULL, size = NULL, sex = NULL, location = NULL, shelterid = NULL, output = NULL, = FALSE) records animal breed size sex location shelterid output Selects the amount of desired random results to be returned. Each returned record is counted as one call to the Petfinder API. Return breeds of animal. Must be one of barnyard, bird, cat, dog, horse, reptile, or smallfurry. Specifies the breed of the animal to search. Specifies the size of the animal/breed to search. Must be one of S (small), M (medium), L (large), XL (extra-large). Filters the search to the desired gender of the animal. Must be one of M (male) or F (female). ZIP/postal code, state, or city and state to perform the search. Filters randomly returned results down to a specific shelter. Sets the amount of information returned in each record. basic returns a simple record while full returns a complete record with description. Defaults to basic. data.frame of randomly selected pet record(s). #' pf$pet.getrandom(animal = 'cat') pf$pet.getrandom(10, 'dog')

6 shelter.find Petfinder Creates an authenticated connection with the Petfinder API. The stored authentication is then used to call the Petfinder API methods. An API key can be obtained from Petfinder by creating an account on their developer page (https://www.petfinder.com/developers/api-key). The function wraps the.petfinder.class R6 class. Creates an authenticated connection with the Petfinder API. The stored authentication is then used to call the Petfinder API methods. An API key can be obtained from Petfinder by creating an account on their developer page (https://www.petfinder.com/developers/api-key). The function wraps the.petfinder.class R6 class. Petfinder(key, secret = NULL) key secret The API key received from Petfinder The secret key received from Petfinder along with the API key. Only used for methods that require additional authentication (not currently used). Intialized Petfinder object that is then used to access the API. pf <- Petfinder(key) # Creates the connection with the Petfinder API. pf$breed.list('cat') # The connection can now be used to access the Petfinder API methods. shelter.find Returns of shelter records matching input parameters. Returns of shelter records matching input parameters. shelter.find(location, name = NULL, offset = NULL, count = NULL, pages = NULL, = FALSE)

shelter.get 7 location name offset ZIP/postal code, state, or city and state to perform the search. Full or partial shelter name Can be set to the value of lastoffset returned from the previous call to retrieve the next set of results. The pages parameter can also be used to pull a desired number of paged results. count The number of records to return. Default is 25. pages The number of pages of results to return. For example, if pages=4 with the default count parameter (25), 125 results would be returned (25 results from first call and 100 from the next four pages). List of returned JSON from the Petfinder API. If the parameter is TRUE, is returned instead. pf$shelter.find('wa', count = 5) pf$shelter.find('wa', pages = 3) shelter.get Returns shelter records of input shelterids. Returns shelter records of input shelterids. shelter.get(shelterid) shelterid ID of the shelter record to return. Accepts a character for a single record or a list or vector of shelterids. data.frame of input shelterid(s).

8 shelter.getpets #' pf <- Petfinder(key) pf$shelter.get(shelterid) shelterids <- c(shelterid1, shelterid2, shelterid3) pf$shelter.get(shelterids) shelter.getpets Returns a collection of pet records for an individual shelter. Returns a collection of pet records for an individual shelter. shelter.getpets(shelterid, status = NULL, offset = NULL, count = NULL, output = NULL, pages = NULL, = FALSE) shelterid status offset Desired shelter s ID Filters returned collection of pet records by the pet s status. Must be one of A (adoptable, default), H (hold), P (pending), X (adopted/removed). Can be set to the value of lastoffset returned from the previous call to retrieve the next set of results. The pages parameter can also be used to pull a desired number of paged results. count The number of records to return. Default is 25. output pages Sets the amount of information returned in each record. basic returns a simple record while full returns a complete record with description. Defaults to basic. The number of pages of results to return. For example, if pages=4 with the default count parameter (25), 125 results would be returned (25 results from first call and 100 from the next four pages). data.frame of pet records associated with specified shelterid.

shelter.listbybreed 9 pf$shelter.getpets('wa40') # Seattle Area Feline Rescue. shelter.listbybreed Returns of shelter IDs listing animals matching the input animal breed. Returns of shelter IDs listing animals matching the input animal breed. shelter.listbybreed(animal, breed, offset = NULL, count = NULL, pages = NULL) animal breed offset Return breeds of animal. Must be one of barnyard, bird, cat, dog, horse, reptile, or smallfurry. Specifies the breed of the animal to search. Can be set to the value of lastoffset returned from the previous call to retrieve the next set of results. The pages parameter can also be used to pull a desired number of paged results. count The number of records to return. Default is 25. pages The number of pages of results to return. For example, if pages=4 with the default count parameter (25), 125 results would be returned (25 results from first call and 100 from the next four pages). data.frame of pet records associated with specified shelterid. pf$shelter.listbybreed('cat', 'Abyssinian') pf$shelter.listbybreed('dog', 'Golden Retriever')

Index breed.list, 2 pet.find, 3 pet.get, 4 pet.getrandom, 5 Petfinder, 6 shelter.find, 6 shelter.get, 7 shelter.getpets, 8 shelter.listbybreed, 9 10