Free-to-Play Games Database

KOSTENLOS
Durch Digiwalls Media | Aktualisiert 4 days ago | Gaming
Popularität

9.8 / 10

Latenz

1,731ms

Service Level

99%

Health Check

N/A

Zurück zu allen Diskussionen

help function

Rapid account: Xbeatrizscosta
xbeatrizscosta
a year ago

i have this function but I want to change console.log to return, so that I can use the function to remove the thumbnail to html later, can anyone help me?

const options = {
method: ‘GET’,
headers: {
‘X-RapidAPI-Key’: ‘5a417bb0c3msh9ad46ccb984dd3fp19d5f5jsn9469e39506ab’,
‘X-RapidAPI-Host’: ‘free-to-play-games-database.p.rapidapi.com
}
};

fetch(‘https://free-to-play-games-database.p.rapidapi.com/api/filter?tag=3d.mmorpg.fantasy.pvp&platform=pc’, options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));

Nehmen Sie an der Diskussion teil - fügen Sie unten einen Kommentar hinzu:

Anmelden / Registrieren, um neue Kommentare zu veröffentlichen