Skip to content

TFT Match History

Antoine CLOP edited this page Aug 1, 2020 · 3 revisions

TFT Match History

TFT Match history contains methods to get TFT finished games. Those games contain a lot of statistics for each player.

Methods

TFTMatchList

Parameters

  • SummonerPuuid: A special unique summonerId (not SummonerId!). See Summoners to get this identifier.
  • Region: The region where the match was played.

Since this method is asynchrone, there is not return value. Response will be provided with a handler closure with parameters: ([TFTGameId]?, String?). TFTGameId array contains a list of game identifier. It may be nil if SummonerPuuid was not found on this Region. The String parameter contains the first error description encountered if existing.

Usage example

league.tftAPI.getMatchList(by: SummonerPuuid("8O-V8DGHm3YimSunwz6I6lntBnJVpPexIso6so6DtgXBZMNPnuktCigiLS7AXniMmqJFUvoc3Zrrzw"), on: .EUW) { (gameIds, errorMsg) in
    if let gameIds = gameIds {
        print("Success!")
    }
    else {
        print("Request failed cause: \(errorMsg ?? "No error description")")
    }
}

TFTMatch

Parameters

  • TFTGameId: Represents the unique identifier of a TFT game. To get this identifier, you must call getTFTMatchList method first.
  • Region: The region where the game took place.

Since this method is asynchrone, there is not return value. Response will be provided with a handler closure with parameters: (TFTMatch?, String?). TFTMatch contains all information about a TFT game. It may be nil if TFTGameId was not found on this Region. The String parameter contains the first error description encountered if existing.

Usage example

league.tftAPI.getMatch(by: TFTGameId("EUW1_4210310480"), on: .EUW) { (game, errorMsg) in
    if let game = game {
        print("Success!")
    }
    else {
        print("Request failed cause: \(errorMsg ?? "No error description")")
    }
}
Clone this wiki locally