Closed teamcoltra closed 5 years ago
Hi @teamcoltra - I've added some documentation to the website which gives some brief details for the API. Hope that is sufficient?
Here's a complete example using the browser's native fetch
API:
const urls = [
"ebook.bike/book/ebb-5c5f8d964d438/little-darlings.html",
"ebook.bike/book/ebb-5c629224a80fc/luck-of-the-devil.html"
];
fetch("https://api.applause-button.com/get-multiple", {
method: "POST",
body: JSON.stringify(urls)
})
.then(response => response.json())
.then(json => console.log(json));
You can see it running here: https://codepen.io/ColinEberhardt/pen/KEpLOV?editors=0011
Hope that helps!
I really love how your site uses the get-multiple API endpoint to list a bunch of claps on the same page. I was wondering if you could give any documentation on how that works. I tried being simple and just copy/pasting it but not getting any luck with the following added to the bottom of my page (I am running jquery as well).