Skip to content

LeagueAPI: Rate limiting

Daniel Dolejška edited this page Dec 13, 2018 · 3 revisions

Version v3.0.0-rc.1

This clever feature will easily prevent exceeding your per key call limits & method limits. In order to enable this feature, you have to set LeagueAPI::SET_CACHE_RATELIMIT to true. Everything is completly automatic, so all you need to do is to enable this feature.

Settings key Data type Info / Possible values
LeagueAPI::SET_CACHE_RATELIMIT bool true, false

Library initialization:

use RiotAPI\LeagueAPI\LeagueAPI;

$api = new LeagueAPI([
	// ...
	LeagueAPI::SET_CACHE_RATELIMIT => true,
	// ...
]);