petfinder-com / petfinder-js-sdk Goto Github PK
View Code? Open in Web Editor NEWPetfinder.com API client for JavaScript/TypeScript
Home Page: https://www.petfinder.com/developers/
License: BSD 3-Clause "New" or "Revised" License
Petfinder.com API client for JavaScript/TypeScript
Home Page: https://www.petfinder.com/developers/
License: BSD 3-Clause "New" or "Revised" License
Can you augment the api to include calls to 'types'?
GET https://api.petfinder.com/v2/types'
Sometimes, when searching for a pet, event though the pet is on the website, Petfinder API says that the pet is not found
Example:
https://www.petfinder.com/dog/ms-wiggles-52649180/la/lafayette/lafayette-animal-shelter-care-center-lascc-la40/
pf.animal.show(52649180).then(function(response) { console.log(response); }).catch(function(error) { console.log(error); });
are all the response objects marked as 'any'?
Ill remember to add typescript types for the response objects and submit a PR.
Hello!
I'm finding that the animal description is always limited to 100 characters (including the ellipsis) for both 'get animals' and 'get animal' endpoints. Is there a way to access the full animal description through the API?
Thanks!
Hello! I'm helping a local animal rescue that uses Petfinder debug why their website doesn't show embedded petfinder images.
It appears that petfinder's certificate is invalid and does not support https when attempting to load photos. Is this something that they're doing wrong in their website or is something wrong on petfinder's side?
Example image: https://photos.petfinder.com/photos/pets/55025850/1/
Note that it loads fine with http
, but this isn't viable anymore as browsers refuse to load mixed content and will automatically upgrade the http
urls to https
.
Hi, I'm trying to implement the new version, and in an empty page the following code works for me:
var pf = new petfinder.Client({apiKey: "my-api-key", secret: "my-api-secret"});
pf.animal.search()
.then(function (response) {
// Do something with response.data.animals
})
.catch(function (error) {
// Handle the error
});
However, on full site, new petfin.... doesn't give me the token (pf.config.token).
Is there anything that might be preventing the API from giving me the token ?
My apologize for the inconvenient.
This package works great, but I'm left with this error in my console.
Refused to set unsafe header "User-Agent"
Please how can I get rid of the error? Thanks
Hi,
It seems like every animal from organization MA480
is missing (client.animal.search({"organization": "MA480"})
returned []
).
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.