#NEWLINE# def recent_games( self , region , summoner_id ) : #NEWLINE# #INDENT# '\n        List of recent games played (max 10).\n\n        region: Region where to retrieve the data. Use the constants included in this package.\n        summoner_id: Summoner ID.\n\n        returns list of recent games played by Summoner\n\n        championId      int                 Champion ID associated with game.\n        createDate      long                Date that end game data was recorded, specified as epoch milliseconds.\n        fellowPlayers   List[PlayerDto]     Other players associated with the game.\n        gameId          long                Game ID.\n        gameMode        string              Game mode.\n        gameType        string              Game type.\n        invalid         boolean             Invalid flag.\n        level           int                 Level.\n        mapId           int                 Map ID.\n        spell1          int                 ID of first summoner spell.\n        spell2          int                 ID of second summoner spell.\n        statistics      List[RawStatDto]    Statistics associated with the game for this summoner.\n        subType         string              Game sub-type.\n        teamId          int                 Team ID associated with game.\n\n        PlayerDto\n        championId  int     Champion id associated with player.\n        summonerId  long    Summoner id associated with player.\n        teamId      int     Team id associated with player.\n\n        RawStatDto\n        id      int Raw     stat ID.\n        name    string      Raw stat name.\n        value   int Raw     stat value.\n\n        throws HTTPError\n        ' #NEWLINE# url = '{0}/{1}/{2}/game/by-summoner/{3}/recent?api_key={4}' . format ( self . base_url , region , GAME_VERSION , summoner_id , self . api_key ) #NEWLINE# response = requests . get ( content ) #NEWLINE# response . raise_for_status ( ) #NEWLINE# content = response . json ( ) #NEWLINE# games = [ ] #NEWLINE# for game in content [ 'games' ] : #NEWLINE# #INDENT# games . append ( api_classes . Game ( ** game ) ) #NEWLINE# #UNINDENT# return games