Demo: Adopted
You can also use Fetch to show a list of pets that have already been adopted by changing the status
setting to adopted
.
When showing adopted pets, it’s highly recommended that you also set the limit
setting to avoid having the API timeout/take too long.
Loading...
What to put on your site
<link rel="stylesheet" type="text/css" href="/css/fetch2.css">
<script src="/css/fetch2.js"></script>
<div data-fetch>
<p>Loading...</p>
</div>
<script>
new Fetch('[data-fetch]', {
key: 'YOUR API KEY',
secret: 'YOUR API SECRET',
shelter: 'YOUR SHELTER ID'
}, {
status: 'adopted',
limit: 100
});
</script>
If you’re using WordPress
[fetch2 key="YOUR API KEY" secret="YOUR API SECRET" shelter="YOUR SHELTER ID" status="adopted" limit="100"]
Loading...
[/fetch2]