Coder Social home page Coder Social logo

petfinder-com / petfinder-js-sdk Goto Github PK

View Code? Open in Web Editor NEW
56.0 56.0 18.0 104 KB

Petfinder.com API client for JavaScript/TypeScript

Home Page: https://www.petfinder.com/developers/

License: BSD 3-Clause "New" or "Revised" License

JavaScript 3.11% TypeScript 96.89%
petfinder petfinder-api

petfinder-js-sdk's People

Contributors

dependabot[bot] avatar mloberg avatar pftjtn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

petfinder-js-sdk's Issues

Typed JSON repsonse?

are all the response objects marked as 'any'?

Ill remember to add typescript types for the response objects and submit a PR.

Animal description is cut off

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!

Petfinder's image host does not support `https` (invalid cert)

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.

image

Trying to update the API

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.

Animal is missing from response

Hi,

It seems like every animal from organization MA480 is missing (client.animal.search({"organization": "MA480"}) returned []).

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.