The basic integration method is the simplest way to add Kennel Management™ functionality to your existing website. All it takes is a few references to our javascript library and css stylesheets at the top of your html pages. This page provides an overview of what features are available and how to integrate them into your site.
The following features are available through the current basic integration method.
Pet results is a page on your website where you can search and display pets that are listed in your Kennel Management system. Follow the steps below to create the pet results page.
On Line #3 above, there is a script reference to JQuery version 3.1.1. JQuery is a popular javascript framework that is required for Kennel Management integration. However, many popular web hosting providers already include JQuery as part of their site templates. If your site already includes a version of JQuery, you can remove Line #3 from the above code to avoid conflicts. The minimum version is JQuery 1.8.3.
<body> <div style="width: 800px; margin: auto;"> <h1>Available Pets</h1> <div id="Kennel Management"></div> </div> </body>
<html> <head> <link type="text/css" rel="stylesheet" href="https://api.kennelmanagement.org/v4/partners.css" /> <script type="text/javascript" src="https://api.kennelmanagement.org/js/jquery-3.1.1.min.js"></script> <script type="text/javascript" src="https://api.kennelmanagement.org/v4/partners.js"></script> <script type="text/javascript"> $(document).ready(function () { PetkeyApi.Keys = "[ENTER YOUR API KEY]"; PetkeyApi.PetDetailPage = "/pet-detail.html"; PetkeyApi.ShowFilter = true; PetkeyApi.SearchOptions.Status = "available"; PetkeyApi.SearchOptions.HasPhoto = true; PetkeyApi.SearchOptions.PetType = "dog"; PetkeyApi.SearchOptions.BreedId = ""; PetkeyApi.SearchOptions.Gender = ""; PetkeyApi.initSearch(); }); </script> </head> <body> <div div style="width: 800px; margin: auto;"> <h1>Available Pets</h1> <div id="petkey"></div> </div> </body> </html>
The pet detail page is where your users will go when they click on one of the pets in the pet results page. It shows additional photos, breed info, and has links to submit customer inquiries to your kennel management system. Follow the steps below to create the pet detail page.
On Line #3 above, there is a script reference to JQuery version 3.1.1. JQuery is a popular javascript framework that is required for Kennel Management integration. However, many popular web hosting providers already include JQuery as part of their site templates. If your site already includes a version of JQuery, you can remove Line #3 from the above code to avoid conflicts. The minimum version is JQuery 1.8.3.
<body> <div style="width: 500px; margin: auto;"> <h1>Pet Detail</h1> <div id="petkey"></div> </div> </body>
<html> <head> <link type="text/css" rel="stylesheet" href="https://api.kennelmanagement.org/v4/partners.css" /> <script type="text/javascript" src="https://api.kennelmanagement.org/js/jquery-3.1.1.min.js"></script> <script type="text/javascript" src="https://api.kennelmanagement.org/v4/partners.js"></script> <script type="text/javascript"> $(document).ready(function () { PetkeyApi.Keys = "[ENTER YOUR API KEY]"; PetkeyApi.PetResultsPage = "/available-pets.html"; PetkeyApi.initPetDetail(); }); </script> </head> <body> <div div style="width: 800px; margin: auto;"> <h1>Pet Detail</h1> <div id="petkey"></div> </div> </body> </html>
Perfect breed match is a tool consists of a 13 question survey that matches user preferences to breed characteristics. Each resulting breed is given a breed score. The lower the score, the closer the breed matches the user preferences. By default, all breeds within Kennel Management will be compared and the top 5 scores will be returned. However, this behaviour can be modified. By setting the KennelOnly input parameter, only the breeds that are available within your kennel management system are considered for comparison. This ensures the resulting top breeds are actually pets you have available to adopt. Follow the steps below to integrate the perfect breed match tool on your website.
On Line #3 above, there is a script reference to JQuery version 3.1.1. JQuery is a popular javascript framework that is required for Kennel Management integration. However, many popular web hosting providers already include JQuery as part of their site templates. If your site already includes a version of JQuery, you can remove Line #3 from the above code to avoid conflicts. The minimum version is JQuery 1.8.3.
<body> <div style="width: 500px; margin: auto;"> <h1>Find Your Perfect Breed</h1> <div id="petkey"></div> </div> </body>
<html> <head> <link type="text/css" rel="stylesheet" href="https://api.kennelmanagement.org/v4/partners.css" /> <script type="text/javascript" src="https://api.kennelmanagement.org/js/jquery-3.1.1.min.js"></script> <script type="text/javascript" src="https://api.kennelmanagement.org/v4/partners.js"></script> <script type="text/javascript"> $(document).ready(function () { PetkeyApi.Keys = "[ENTER YOUR API KEY]"; PetkeyApi.BreedMatchOptions.MaxResults = 5; PetkeyApi.BreedMatchOptions.IncludeHybrids = true; PetkeyApi.BreedMatchOptions.KennelOnly = true; PetkeyApi.initBreedMatch(); }); </script> </head> <body> <div div style="width: 800px; margin: auto;"> <h1>Find Your Perfect Bree</h1> <div id="petkey"></div> </div> </body> </html>
Petkey automatically creates multiple resized versions of all pet images uploaded to the Kennel Management System. This helps prevent images from being cut off or causing layout issues on your website.
When clients upload photos to their KMS account, the original images can be very large (up to 10MB). If your website directly links to these original images, they may appear cut off or cause performance issues due to their size.
Petkey automatically generates resized versions of each image. Important: Not all sizes may be available for every image. The system creates resized versions based on the original image's characteristics and processing requirements.
Suffix | Resolution (4:3 Aspect Ratio) | Resolution (16:9 Aspect Ratio) | Best Use |
---|---|---|---|
_50 | 50x38 pixels | 50x28 pixels | Thumbnails, small previews |
_100 | 100x75 pixels | 100x56 pixels | Small grid items, mobile thumbnails |
_200 | 200x150 pixels | 200x112 pixels | Medium grid items, preview images |
_300 | 300x225 pixels | 300x169 pixels | Large grid items, featured images |
_500 | 500x375 pixels | 500x281 pixels | Detail page images, medium displays |
_800 | 800x600 pixels | 800x450 pixels | Large detail images, high-quality displays |
Original | Full resolution (up to 10MB) | Lightbox views, downloads |
Note: Widescreen versions use a capital "W" (e.g., _800W.jpg
), not lowercase "w".
The API returns image URLs that follow this pattern:
Example: https://stprdkm.blob.core.windows.net/public/images/20000/21000/21285.jpg
To access resized versions, simply append the appropriate suffix to the filename:
https://stprdkm.blob.core.windows.net/public/images/20000/21000/21285.jpg
https://stprdkm.blob.core.windows.net/public/images/20000/21000/21285_100.jpg
https://stprdkm.blob.core.windows.net/public/images/20000/21000/21285_300.jpg
https://stprdkm.blob.core.windows.net/public/images/20000/21000/21285_500.jpg
For Pet Results Pages (Grid Layout):
_200
or _300
for standard grid items_100
for compact grids or mobile layouts_500
for featured or highlighted petsFor Pet Detail Pages:
_500
or _800
for main pet photos_300
for additional photo galleries_200
for thumbnail navigationFor Mobile Responsive Design:
_100
or _200
for mobile devices_300
or _500
for tablets_500
or _800
for desktop displaysHere's how you can modify your website to use appropriately sized images:
<!-- For a pet results grid --> <div class="pet-grid"> <div class="pet-item"> <img src="https://stprdkm.blob.core.windows.net/public/images/20000/21000/21285_300.jpg" alt="Pet Name" style="width: 300px; height: 225px;" /> <h3>Pet Name</h3> </div> </div> <!-- For a pet detail page --> <div class="pet-detail"> <img src="https://stprdkm.blob.core.windows.net/public/images/20000/21000/21285_500.jpg" alt="Pet Name" style="width: 500px; height: 375px;" /> <h1>Pet Name</h1> </div>
If images still appear cut off:
If you get an error when accessing a resized image:
_300.jpg
instead of _300W.jpg
)_100.jpg
, _200.jpg
, _300.jpg
, _500.jpg
, _800.jpg
_800W.jpg
), not lowercase "w"If images are too small or pixelated:
_300
instead of _200
)