| @@ 13-28 (lines=16) @@ | ||
| 10 | * @package LoLApi\Api |
|
| 11 | * @see https://developer.riotgames.com/api-methods/ |
|
| 12 | */ |
|
| 13 | class MasteryApi extends BaseApi |
|
| 14 | { |
|
| 15 | const API_URL_MASTERIES_BY_SUMMONER_ID = '/lol/platform/v3/masteries/by-summoner/{summonerId}'; |
|
| 16 | ||
| 17 | /** |
|
| 18 | * @param string $summonerId |
|
| 19 | * |
|
| 20 | * @return ApiResult |
|
| 21 | */ |
|
| 22 | public function getMasteriesBySummonerId($summonerId) |
|
| 23 | { |
|
| 24 | $url = str_replace('{summonerId}', $summonerId, self::API_URL_MASTERIES_BY_SUMMONER_ID); |
|
| 25 | ||
| 26 | return $this->callApiUrl($url, [], true); |
|
| 27 | } |
|
| 28 | } |
|
| 29 | ||
| @@ 13-28 (lines=16) @@ | ||
| 10 | * @package LoLApi\Api |
|
| 11 | * @see https://developer.riotgames.com/api-methods/ |
|
| 12 | */ |
|
| 13 | class RuneApi extends BaseApi |
|
| 14 | { |
|
| 15 | const API_URL_RUNES_BY_SUMMONER_ID = '/lol/platform/v3/runes/by-summoner/{summonerId}'; |
|
| 16 | ||
| 17 | /** |
|
| 18 | * @param string $summonerId |
|
| 19 | * |
|
| 20 | * @return ApiResult |
|
| 21 | */ |
|
| 22 | public function getRunesBySummonerId($summonerId) |
|
| 23 | { |
|
| 24 | $url = str_replace('{summonerId}', $summonerId, self::API_URL_RUNES_BY_SUMMONER_ID); |
|
| 25 | ||
| 26 | return $this->callApiUrl($url, [], true); |
|
| 27 | } |
|
| 28 | } |
|
| 29 | ||