1. Go to this page and download the library: Download jketelaar/php-fut-api 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/ */
jketelaar / php-fut-api example snippets
ne('DATA_DIR', __DIR__ . '/data/');
$api = new \JKetelaar\fut\api\API('[email protected]', 'password', 'secret', 'totp_callback', 'platform');
// You can also disable the SSL verify peer, when you're having issues with your environment. Simply pass true as the latest parameter
// $api = new \JKetelaar\fut\api\API('[email protected]', 'password', 'secret', 'totp_callback', 'platform', true);
if($api->login() === true) {
echo('We\'re logged in!' . "\n");
$handler = $api->getHandler();
foreach($handler->getTradepile() as $trade) {
// Interact with $trade here
}
}
function totp_callback() {
$totp = new \OTPHP\TOTP('FIFA', 'SECRET');
return $totp->now();
}
function findByChemistryStyle(ChemistryStyle $style){
echo('Searching for players with style ID' . $style);
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.