My personal PHP "library" to access Fortnite api
use FortniteApi\FortniteRequest;
use FortniteApi\OAuth;
$login = [
"login" => "username",
"password" => "password",
"launcherId" => "launcher_id",
"gameId" => "game_id",
];
OAuth::setLoginDetails($login);
$fortnite = new FortniteRequest();
//Return
$user = $fortnite->lookup('username');
$stats = $fortnite->stats($user, 'plateform', 'window');
Available window : 'weekly' or 'alltime' | default 'alltime' Available plateform: 'pc', 'xb1', 'ps4'
//RAW DATA
$store = $fortnite->store();
//RAW DATA
$news = $fortnite->news('english);
Available languages : 'english','french','russian','italian','spanish','polish', 'portuguese','german','japanese'
$status = $fortnite->status();