I try to use Steam-Web-Api first time and I've got some problem.
I want to get full list of games - in this case of my profile - I receive list with apiIds etc but each of game has null value in Name field.
Here is simple code:
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()
);
}
}
}
In loop I try to extract appId and name, but each of game has null value and I just don't understand Why?
Short example:
10: null 20: null 30: null 40: null 50: null 60: null 70: null