Fortnite API

My personal PHP "library" to access Fortnite api

Basic usage

use FortniteApi\FortniteRequest;
use FortniteApi\OAuth;

$login = [
            "login" => "username",
            "password" => "password",
            "launcherId" => "launcher_id",
            "gameId" => "game_id",
 ];
 OAuth::setLoginDetails($login);
 $fortnite = new FortniteRequest();

Get user

//Return
$user = $fortnite->lookup('username');

Get Stats

$stats = $fortnite->stats($user, 'plateform', 'window');

Available window : 'weekly' or 'alltime' | default 'alltime' Available plateform: 'pc', 'xb1', 'ps4'

Get store

//RAW DATA
$store = $fortnite->store();

Get news

//RAW DATA
$news = $fortnite->news('english);

Available languages : 'english','french','russian','italian','spanish','polish', 'portuguese','german','japanese'

Get status

$status = $fortnite->status();