| @@ 42-48 (lines=7) @@ | ||
| 39 | * |
|
| 40 | * @return ApiResult |
|
| 41 | */ |
|
| 42 | public function getChampionsMasteries($platformId, $playerId) |
|
| 43 | { |
|
| 44 | $url = str_replace('{playerId}', $playerId, self::API_URL_CHAMPION_MASTERY_ALL); |
|
| 45 | $url = str_replace('{platformId}', $platformId, $url); |
|
| 46 | ||
| 47 | return $this->callApiUrl($url, []); |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * @param int $platformId |
|
| @@ 56-62 (lines=7) @@ | ||
| 53 | * |
|
| 54 | * @return ApiResult |
|
| 55 | */ |
|
| 56 | public function getChampionsMasteriesScore($platformId, $playerId) |
|
| 57 | { |
|
| 58 | $url = str_replace('{playerId}', $playerId, self::API_URL_CHAMPION_MASTERY_SCORE); |
|
| 59 | $url = str_replace('{platformId}', $platformId, $url); |
|
| 60 | ||
| 61 | return $this->callApiUrl($url, []); |
|
| 62 | } |
|
| 63 | ||
| 64 | /** |
|
| 65 | * @param int $platformId |
|