Closed EmanueleSpadaro closed 3 years ago
Hello! What does the exception say?
Hi! This is the exception message: DataDragon API was not initialized properly! StaticData endpoints cannot be used.
Apparently I cannot send Static Requests, other stuff works fine like Summoner Endpoint for example. Is it a bug or something?
Oh I see! You are trying to call $api->getStaticChampion(61)
which depends on DataDragonAPI
library being initialized—that can be done by adding LeagueAPI::SET_DATADRAGON_INIT => true
to LeagueAPI
settings array.
But you are right of course, this is my bad, providing this snippet as minimalistic working example when it doesn't work as provided.
That's awesome to hear, I would consider updating the example then! Thank you for your time!
Hi! I was trying to test this wrapper and followed line by line all of your instructions, but whenever i try to run the initialization code I get a RiotAPI\LeagueAPI\Exceptions\SettingsException and i'm having a hard time trying to find out why! This is the code: