Replies: 1 comment 4 replies
-
The RAWG API is used to fetch data about games information, such as the cover image, ratings, achievements, etc... To get this information, Gavilya uses RestSharp to fetch the RAWG API. But before that, the user must associate the game to a RAWG (game) ID using a search dialog. The RAWG ID of the game is then stored in the Gavilya/Gavilya/Classes/Global.cs Lines 361 to 387 in 5aa610f
More RAWG-related methods are available in the You'll notice that the JSON returned by the API is deserialized to a Gavilya/Gavilya.SDK/RAWG/Game.cs Lines 1 to 156 in 5aa610f To use the API, you need an API key that isn't publicly available in this repo. I have two Gavilya/Gavilya/Classes/APIKeys.cs Lines 25 to 35 in 5aa610f The local one: (named public static partial class APIKeys
{
static APIKeys()
{
RAWGAPIKey = "API_KEY_HERE";
}
} You can learn more about RestSharp here. |
Beta Was this translation helpful? Give feedback.
-
How did you use the RAWG API in your app
Beta Was this translation helpful? Give feedback.
All reactions