We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataDragonAPI calls template:
$result = false; try { // Fetch StaticData from JSON files $result = DataDragonAPI::FUNCTION_NAME(...$PARAMETERS); if (!$result) throw new ServerException("StaticData failed to be loaded."); $this->result_data = $result; } catch (DataDragonExceptions\SettingsException $ex) { throw new SettingsException("DataDragon API was not initialized properly! StaticData endpoints cannot be used."); } catch (DataDragonExceptions\ArgumentException $ex) { throw new RequestException($ex->getMessage(), $ex->getCode()); } finally { // Parse array and create instances return new ApiObject($result, $this); }
Should be refactored to "kind of" match up with normal API calls:
$this->setEndpoint("/lol/league/" . self::RESOURCE_LEAGUE_VERSION . "/grandmasterleagues/by-queue/{$game_queue_type}") ->setResource(self::RESOURCE_LEAGUE, "/grandmasterleagues/by-queue/%s") ->makeCall(); return new Objects\LeagueListDto($this->getResult(), $this);
The text was updated successfully, but these errors were encountered:
7338a23
dolejska-daniel
No branches or pull requests
DataDragonAPI calls template:
Should be refactored to "kind of" match up with normal API calls:
The text was updated successfully, but these errors were encountered: