1. Go to this page and download the library: Download r6api/client library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
r6api / client example snippets
use R6API\Client\ClientBuilder;
use R6API\Client\Api\Type\PlatformType;
$builder = new ClientBuilder();
$builder->setCacheItemPool($cacheItemPool); // accept PSR-6 adapter (not mandatory)
$client = $builder->buildAuthenticated('%email%', '%password%');
class Progression
{
/**
* @var int
*/
public $xp;
/**
* @var Uuid
*/
public $profileId;
/**
* @var int
*/
public $lootboxProbability;
/**
* @var int
*/
public $level;
public function getLootboxProbabilityPercent(): float;
}
class Rank
{
/**
* @var string
*/
public $boardId;
/**
* @var int
*/
public $pastSeasonsAbandons;
/**
* @var \DateTime
*/
public $updateTime;
/**
* @var float
*/
public $skillMean;
/**
* @var int
*/
public $abandons;
/**
* @var int
*/
public $season;
/**
* @var string
*/
public $region;
/**
* @var Uuid
*/
public $profileId;
/**
* @var int
*/
public $pastSeasonsLosses;
/**
* @var float
*/
public $maxMmr;
/**
* @var float
*/
public $mmr;
/**
* @var int
*/
public $wins;
/**
* @var float
*/
public $skillStdev;
/**
* @var int
*/
public $rank;
/**
* @var int
*/
public $losses;
/**
* @var int
*/
public $nextRankMmr;
/**
* @var int
*/
public $pastSeasonsWins;
/**
* @var int
*/
public $previousRankMmr;
/**
* @var int
*/
public $maxRank;
public function getWinLosseRate(): float;
}