dolejska-daniel / riot-api

Riot League of Legends & DataDragon API wrappers for PHP7 and PHP8.
GNU General Public License v3.0
112 stars 25 forks source link

getLeaguePositionsForSummoner is wrong url #52

Closed santutu closed 5 years ago

santutu commented 5 years ago

LeagueApi.php 1559 lines

To change positions -> entries

before

    $resultPromise = $this->setEndpoint("/lol/league/" . self::RESOURCE_LEAGUE_VERSION . "/positions/by-summoner/{$encrypted_summoner_id}")
            ->setResource(self::RESOURCE_LEAGUE, "/positions/by-summoner/%s")
            ->makeCall();

after

$resultPromise = $this->setEndpoint("/lol/league/" . self::RESOURCE_LEAGUE_VERSION . "/entries/by-summoner/{$encrypted_summoner_id}")
            ->setResource(self::RESOURCE_LEAGUE, "/entries/by-summoner/%s")
            ->makeCall();

it works