Free-to-Play Games Database

免费
通过 Digiwalls Media | 已更新 il y a 7 jours | Gaming
人气

9.8 / 10

延迟

443ms

服务等级

99%

Health Check

N/A

返回所有讨论

help function

Rapid account: Xbeatrizscosta
xbeatrizscosta
il y a un an

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));

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论