code here: https://github.com/Cara-Cai/A2Z/tree/main/Koala
curl -H "x-api-key: 0cff5581a0cc459ab7c58bb065644231" \ "https://api.apileague.com/convert-image-to-ascii-txt?url=https://upload.wikimedia.org/wikipedia/commons/3/35/Basic_human_drawing.png&width=200&height=200"
The image URL is not standardized (?)
when I used this -
curl -H "x-api-key: 0cff5581a0cc459ab7c58bb065644231" \ "https://api.apileague.com/convert-image-to-ascii-txt?url=[https://en.wikipedia.org/wiki/Koala#/media/File:Koala_climbing_tree.jpg](https://en.wikipedia.org/wiki/Koala#/media/File:Koala_climbing_tree.jpg)&width=100&height=100"
It failed.
The server is not responding to my attempts.
I even tried to copy and paste the simple koala.js and the server is not responding to my attempts.
And I finally realized I FORGOT TO UPDATE THE BOT.JS!!! Then I fixed.
https://apileague.com/apis/random-joke-api/
example code from the website
const url = '<https://api.apileague.com/retrieve-random-joke?include-tags=animal>';
const apiKey = '';
fetch(url, {
method: 'GET',
headers: {
'x-api-key': apiKey
}
})
.then(response => {
if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
}
return response.json();
})
.then(data => console.log(data))
.catch(error => console.error('There was a problem with the fetch operation:', error));