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

Question : Can we select more than one region for init.php ? #89

Closed Lucasnl closed 4 years ago

Lucasnl commented 4 years ago

For example

LeagueAPI::SET_REGION => Region::BRASIL,Region::EUROPE_EAST, Region::EUROPE_WEST,

and if so , how does it work ?

dolejska-daniel commented 4 years ago

Hello, it is not possible, to set more than one region at the time, API needs to know exactly where to make the requests to. But what you can do is to switch active region with $api->setRegion(Region::BRASIL) or $api->setTemporaryRegion(Region::BRASIL); $api->unsetTemporaryRegion();.

If you've got any other questions, feel free to ask :)

Lucasnl commented 4 years ago

Thanks for the Help !!!