class SteamApiExample {
public static void main(String[] args) throws SteamApiException, NoSuchElementException {
SteamApi steamApi = SteamApi.getInstance("KEY");
SteamId steamId = new SteamId(76561198201241926);
PlayerSummaries playerSummaries = steamApi.getSteamUserInterface()
.getPlayerSummaries(steamId)
.orElseThrow();
System.out.println("Result: " + playerSummaries.getDisplayName());
}
}
<dependency>
<groupId>org.steambuff</groupId>
<artifactId>SteamAPI</artifactId>
<version>{REPLACE_TO_VERSION}</version>
</dependency>
compile 'org.steambuff:SteamAPI:{REPLACE_TO_VERSION}'
- GetPlayerSummaries (v0002)
- GetNewsForApp (v0002)
- GetGlobalAchievementPercentagesForApp (v0002)
- GetGlobalStatsForGame (v0001)
- GetFriendList (v0001)
- GetPlayerAchievements (v0001)
- GetUserStatsForGame (v0002)
- GetOwnedGames (v0001)
- GetRecentlyPlayedGames (v0001)
- IsPlayingSharedGame (v0001)
- GetSchemaForGame (v2)
- GetPlayerBans (v1)
- getSteamIdByPage (Get SteamId by profile user)
- getSteamIdByLogin (Get SteamId by profile login)