Drei Tarotkarten ziehen Drei Tarotkarten ziehen function getThreeTarotCards() { const options = { method: 'GET', url: 'https://horoscope-astrology.p.rapidapi.com/threetarotcards', headers: { 'X-RapidAPI-Key': '5defc05560msh57f8dcb0cd76a81p12e838jsn4b4ada77d30b', 'X-RapidAPI-Host': 'horoscope-astrology.p.rapidapi.com' } }; axios.request(options) .then(function (response) { console.log(response.data); const tarotCards = response.data.cards; const tarotCardsHtml = tarotCards.map(card => { return ` ${card.name} ${card.meaning} `; }).join(""); document.getElementById("tarot-cards").innerHTML = tarotCardsHtml; }) .catch(function (error) { console.error(error); }); }