diff --git a/example/getLeaderboard.go b/example/getLeaderboard.go index 673d34e..a82c156 100644 --- a/example/getLeaderboard.go +++ b/example/getLeaderboard.go @@ -15,8 +15,7 @@ func GetLeaderboard(params battlenet.BattleNetAPIParams, bracket string) { var pvpIndex gamedata.PvpSeasonIndexAPI json.Unmarshal(response, &pvpIndex) - // Get the leaderboards for the current PVP season and Bracket - + // Get the leaderboards for the current PVP season and desired Bracket params.UrlOrEndpoint = fmt.Sprintf(gamedata.PvpLeaderboardEndpoint, pvpIndex.CurrentSeason.ID, bracket) response = battlenet.BattleNetAPI(params, nil) file, err := os.Create(fmt.Sprintf("pvp_season_%d_leaderboard-bracket_%s.json", pvpIndex.CurrentSeason.ID, bracket))