E
E
elman19902022-04-03 13:09:27
JavaScript
elman1990, 2022-04-03 13:09:27

How to use the API?

want to get list of games from https://rawg.io/apidocs . The site says that you need to use the key. I can't figure out what the request should look like and how to use the key
I make the request like this:
getGames() {
return fetch(' https://api.rawg.io/api/games ', {
method: 'GET',

headers: {
' Content-Type': 'application/json',
},
})

}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Nesterov, 2022-04-03
@elman1990

And to read the page on the first link is weak?
There literally in the second block the scheme of request is resulted.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question