#NEWLINE# def stats_summary( self , region , summoner_id , season = None ) : #NEWLINE# #INDENT# '\n        Summoner stat summary\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 player stat summaries\n\n        playerStatSummaries     List[PlayerStatsSummaryDto]     List of player stats summaries associated with the summoner.\n        summonerId              long                            Summoner ID.\n\n        PlayerStatsSummaryDto\n        aggregatedStats         AggregatedStatsDto      Aggregated stats.\n        losses                  int                     Number of losses for this queue type. Returned for ranked queue types only.\n        modifyDate              long                    Date stats were last modified specified as epoch milliseconds.\n        playerStatSummaryType   string                  Player stats summary type. (legal values: AramUnranked5x5, CoopVsAI, OdinUnranked, RankedPremade3x3, RankedPremade5x5, RankedSolo5x5, RankedTeam3x3, RankedTeam5x5, Unranked, Unranked3x3, OneForAll5x5, FirstBlood1x1, FirstBlood2x2)\n        wins                    int                     Number of wins for this queue type.\n\n        AggregatedStatsDto\n        averageAssists                  int     Dominion only.\n        averageChampionsKilled          int     Dominion only.\n        averageCombatPlayerScore        int     Dominion only.\n        averageNodeCapture              int     Dominion only.\n        averageNodeCaptureAssist        int     Dominion only.\n        averageNodeNeutralize           int     Dominion only.\n        averageNodeNeutralizeAssist     int     Dominion only.\n        averageNumDeaths                int     Dominion only.\n        averageObjectivePlayerScore     int     Dominion only.\n        averageTeamObjective            int     Dominion only.\n        averageTotalPlayerScore         int     Dominion only.\n        botGamesPlayed                  int \n        killingSpree                    int \n        maxAssists                      int     Dominion only.\n        maxChampionsKilled              int     \n        maxCombatPlayerScore            int     Dominion only.\n        maxLargestCriticalStrike        int \n        maxLargestKillingSpree          int \n        maxNodeCapture                  int     Dominion only.\n        maxNodeCaptureAssist            int     Dominion only.\n        maxNodeNeutralize               int     Dominion only.\n        maxNodeNeutralizeAssist         int     Dominion only.\n        maxObjectivePlayerScore         int     Dominion only.\n        maxTeamObjective                int     Dominion only.\n        maxTimePlayed                   int \n        maxTimeSpentLiving              int \n        maxTotalPlayerScore             int     Dominion only.\n        mostChampionKillsPerSession     int \n        mostSpellsCast                  int \n        normalGamesPlayed               int \n        rankedPremadeGamesPlayed        int \n        rankedSoloGamesPlayed           int \n        totalAssists                    int \n        totalChampionKills              int \n        totalDamageDealt                int \n        totalDamageTaken                int \n        totalDoubleKills                int \n        totalFirstBlood                 int \n        totalGoldEarned                 int \n        totalHeal                       int \n        totalMagicDamageDealt           int \n        totalMinionKills                int \n        totalNeutralMinionsKilled       int \n        totalNodeCapture                int     Dominion only.\n        totalNodeNeutralize             int     Dominion only.\n        totalPentaKills                 int \n        totalPhysicalDamageDealt        int \n        totalQuadraKills                int \n        totalSessionsLost               int \n        totalSessionsPlayed             int \n        totalSessionsWon                int \n        totalTripleKills                int \n        totalTurretsKilled              int \n        totalUnrealKills                int\n\n        throws HTTPError\n        ' #NEWLINE# url = '{0}/{1}/{2}/stats/by-summoner/{3}/summary?api_key={4}' . format ( self . base_url , region , STATS_VERSION , summoner_id , self . api_key ) #NEWLINE# if season : #NEWLINE# #INDENT# url += '&season=SEASON{0}' . format ( season ) #NEWLINE# #UNINDENT# response = requests . get ( url ) #NEWLINE# response . raise_for_status ( ) #NEWLINE# content = response . json ( ) #NEWLINE# player_stat_summaries = [ ] #NEWLINE# for stat_summary in content [ 'playerStatSummaries' ] : #NEWLINE# #INDENT# player_stat_summaries . append ( api_classes . PlayerStatsSummary ( ** stat_summary ) ) #NEWLINE# #UNINDENT# return player_stat_summaries