Closed giovanni-grieco closed 1 year ago
Hi Giovanni,
please see this answer in a similar issue: https://github.com/lpradel/steam-web-api-java/issues/4#issuecomment-167119315
In short, do the following:
GetOwnedGamesRequest request = new GetOwnedGamesRequest.GetOwnedGamesRequestBuilder( "steam-id").includeAppInfo(true).buildRequest();
Or use the other factory method SteamWebApiRequestFactory.createGetOwnedGamesRequest(String steamId, boolean includeAppInfo, boolean includePlayedFreeGames, List<Integer> appIdsFilter)
which accepts includeAppInfo
.
See Steam API documentation for GetOwnedGames
See also this SO comment explaining it: https://stackoverflow.com/a/73028555/1055743
Alright, thank you for the quick reply.
As per title. I can't seem to get the steam App name. GetOwnedGamesRequest request = SteamWebApiRequestFactory.createGetOwnedGamesRequest("/YOURSTEAMID/"); GetOwnedGames gog = SteamAPI.client.processRequest(request);
for(com.lukaspradel.steamapi.data.json.ownedgames.Game apiGame : gog.getResponse().getGames() ){
System.out.println(apiGame.getName());
}
The output of this foreach loop is null :( The appID field is fine though.