Hello,
I started work with your code but I have a few problems, I don't understand where is the problem so I hope you can help me.
So,
At the beginning I wanted test how works the game list. I did it:
public class SteamWebApiDemo {
private static final String key = "MY_KEY";
public static void main( String[] args ) throws SteamApiException {
SteamWebApiClient client = new SteamWebApiClient.SteamWebApiClientBuilder( key ).build();
GetOwnedGamesRequest req = new GetOwnedGamesRequest.GetOwnedGamesRequestBuilder( "76561198033046525" ).buildRequest();
GetOwnedGames g = client.<GetOwnedGames> processRequest(req);
for( com.lukaspradel.steamapi.data.json.ownedgames.Game game : g.getResponse().getGames() ) {
System.out.println( game.getAppid() + ": " + game.getName() );
}
}
Here I want to extract MY games list and I want to show GameId and name BUT in result I get ID's where each name is NULL:
10: null 20: null 30: null 40: null 50: null 60: null 70: null
It is my first problem - Why I can't see name of all games?
Okay this problem is resolved. Should be .includeAppInfo(true).buildRequest(); For all names but still is problem with game_count I don't know right now if it is normal in Steam Web Api because it is count of all games + DLC's. In my example it is FEAR + some dlc. Here I have some suggestion to you, maybe make in games category for DLC?
Now is next problem much strange with documentation, maybe you can explain it to me. So,
I tried to use links from doc to get full list of my games:
http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key=MY_KEY&steamid=76561198033046525&format=json
And I receive these games but only with 2 attributes appId and playtime_forever. Here is one problem:
"response": {
"game_count":
game_count show wrong value, in this case shows 122 games where I have 118 on steam. - What is wrong here or what I didn't understand?
The last problem is with game Id. From upper list in JSON I tried to use a few ID's. For example here, ID=10 is for Counter Strike, so I tried to use again link from doc for SchemaGame:
http://api.steampowered.com/ISteamUserStats/GetSchemaForGame/v2/?key=MY_KEY&appid=10
And in result I see this:
For other example with other random ID I see this:
http://api.steampowered.com/ISteamUserStats/GetSchemaForGame/v2/?key=MY_KEY&appid=58610
and in result I got this:
{
"game": {
"gameName": "ValveTestApp58610",
"gameVersion": "13",
"availableGameStats": {
"achievements": [
........
Why as the game name I got "ValveTestApp58610" not real name?
Could you explain me where is the problem or what I did wrong?
For clarity, I have correct key and my profile is public on steam.