# ChampionMastery

Allows accessing the score and ChampionMasteryDto of every or a single champion

## Methods

### by\_summoner(regionId, encryptedSummonerId, get\_url=False)

Get all champion mastery entries sorted by number of champion points descending,

**regionId**: LOL server ID. Accepted values: 0-11(inclusive) for 'BR1', 'EUN1', 'EUW1', 'JP1', 'KR', 'LA1', 'LA2', 'NA1', 'OC1', 'RU' & 'TR1'

**encryptedSummonerId**: Summoner IDs are only unique per region. Different APIs use different IDs

**get\_url**: When true, don't make an API call and returns the url connection

**return**: JSON object retrieved from riot API call (or link when get\_url is True)

### by\_summoner\_champion(regionId, encryptedSummonerId, championId, get\_url=False)

Get a champion mastery by player ID and champion ID.

**regionId**: LOL server ID. Accepted values: 0-11(inclusive) for 'BR1', 'EUN1', 'EUW1', 'JP1', 'KR', 'LA1', 'LA2', 'NA1', 'OC1', 'RU' & 'TR1'

**encryptedSummonerId**: Summoner IDs are only unique per region. Different APIs use different IDs

**championId**: Integer that represents the champion you want to retrieve (e.g. 1 -> Annie)

**get\_url**: When true, don't make an API call and returns the url connection

**return**: JSON object retrieved from riot API call (or link when get\_url is True)

### score\_by\_summoner(regionId, encryptedSummonerId, get\_url=False)

Get a player's total champion mastery score, which is the sum of individual champion mastery levels.

**regionId**: LOL server ID. Accepted values: 0-11(inclusive) for 'BR1', 'EUN1', 'EUW1', 'JP1', 'KR', 'LA1', 'LA2', 'NA1', 'OC1', 'RU' & 'TR1'

**encryptedSummonerId**: Summoner IDs are only unique per region. Different APIs use different IDs

**get\_url**: When true, don't make an API call and returns the url connection

**return**: JSON object retrieved from riot API call (or link when get\_url is True)
