{
status: 400,
content: 'Clé invalide'
}
{
"status": 200,
"content": {
"id": 30,
"url": "https://cdn.night-api.com/api/images/animals/leopard/L65sgTJWVLaEnvi4455AaBIobg3U1v.png"
}
}
const axios = require("axios");
axios.get('https://api.night-api.com/images/animals/leopard', {
headers: {
authorization: "Your API token"
}
})
.then(function (response) {
console.log(response.data);
})