shapecode / fut-api Goto Github PK
View Code? Open in Web Editor NEWManage your FIFA Ultimate Team with this FIFA 20 WebApp API PHP framework
Manage your FIFA Ultimate Team with this FIFA 20 WebApp API PHP framework
Brazil: O Login funcionou, mas como faço para recuperar uma sessão anterior? Sem precisar estar colocando o código de backup novamente.
EN: Login worked, but how do I recover a previous session? No need to be putting the backup code again.
How Save and recover getSession?
Hi
I have next error "cURL error 35: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small".
Could you please help me. I don't understand how to fix it.
Hi , the response from this $fut->search($options) , don't show any literal names data in result . Where can I get names data, through this API ?
I have experience in C ++ and C #, but with PHP and WEB I don't know anything.
Is this an application or just a package to run in one?
I need some tips.
composer json
{ "name": "administrator/demo", "require": { "monolog/monolog": "1.0.*", "shapecode/fut-api": "^20.0@dev" }, "autoload": { "psr-4": { } }, "minimum-stability": "dev", "prefer-stable": true }
php 7.2 ubuntu
Fatal error: Uncaught GuzzleHttp\Exception\TooManyRedirectsException: Will not follow more than 5 redirects in /www/wwwroot/buyer.fut-charge.com/demo/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php:147 Stack trace: #0 /www/wwwroot/buyer.fut-charge.com/demo/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(94): GuzzleHttp\RedirectMiddleware->guardMax(Object(GuzzleHttp\Psr7\Request), Array) #1 /www/wwwroot/buyer.fut-charge.com/demo/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(72): GuzzleHttp\RedirectMiddleware->checkRedirect(Object(GuzzleHttp\Psr7\Request), Array, Object(GuzzleHttp\Psr7\Response)) #2 /www/wwwroot/buyer.fut-charge.com/demo/vendor/guzzlehttp/promises/src/Promise.php(203): GuzzleHttp\RedirectMiddleware->GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response)) #3 /www/wwwroot/buyer.fut-charge.com/demo/vendor/guzzlehttp/promises/src/Promise.php(169): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), Array) #4 /www/wwwroot/buyer.fut-charge.com/demo/vendor/guzzlehttp/promises/ in /www/wwwroot/buyer.fut-charge.com/demo/vendor/php-http/guzzle6-adapter/src/Promise.php on line 136
Hello! Thanks for your hard work.
Are there any plans to adapt for FIFA 21?
Hi,
is there any option searching the transfermarket without an account?
I dont't need to buy anything, just need the prices.
Thanks a lot
Hi,
I'm trying to run this project using the composer way. (also, the README says to run compose require nicklog/fut-api
but I believe it's supposed to be shapecode/fut-api
)
However, I'm getting the following error :
Problem 1
- Installation request for shapecode/fut-api ^19.0 -> satisfiable by shapecode/fut-api[19.0.0].
- shapecode/fut-api 19.0.0 requires shapecode/anticaptcha ^1.0 -> satisfiable by shapecode/anticaptcha[1.0.x-dev] but these conflict with your requirements or minimum-stability.
Any ideas ? Thanks for the project btw, looking clean
I want to search for consumables but when I pass parameter like this I'm giving error Permission Denied.
$params = [
'max_buy' => 1000,
'level' => 'gold',
'type' => 'consumable',
'category' => 'fitness',
];
What is the js object where research and auction data are stored?
Fatal error: Uncaught Http\Discovery\Exception\DiscoveryFailedException: Could not find resource using any discovery strategy. Find more information at http://docs.php-http.org/en/latest/discovery.html#common-errors
- Puli Factory is not available
- No valid candidate found using strategy "Http\Discovery\Strategy\CommonClassesStrategy". We tested the following candidates: .
- No valid candidate found using strategy "Http\Discovery\Strategy\CommonPsr17ClassesStrategy". We tested the following candidates: Nyholm\Psr7\Factory\Psr17Factory, Zend\Diactoros\RequestFactory, Http\Factory\Diactoros\RequestFactory, Http\Factory\Guzzle\RequestFactory, Http\Factory\Slim\RequestFactory.
in C:\Users\James\PhpstormProjects\untitled\vendor\php-http\discovery\src\Exception\DiscoveryFailedException.php:41
Stack trace:
#0 C:\Users\James\PhpstormProjects\untitled\vendor\php-http\discovery\src\ClassDiscovery.php(79): Http\Discovery\Exception\DiscoveryFailedException::create(Array)
#1 C:\Users\James\PhpstormProjects\untitled\vendor\php-ht in C:\Users\James\PhpstormProjects\untitled\vendor\php-http\discovery\src\Psr17FactoryDiscovery.php on line 22
Trying to use the api and im running into this error trying to log in!
<?php
require 'vendor/autoload.php';
use Shapecode\FUT\Client\Api\Core;
use Shapecode\FUT\Client\Authentication\Account;
use Shapecode\FUT\Client\Authentication\Credentials;
use Shapecode\FUT\Client\Exception\FutException;
$credentials = new Credentials('*@gmail.com', "***", 'ps4');
$session = null;
$account = new Account($credentials, $session);
$fut = new Core($account);
try {
$login = $fut->login();
$session = $account->getSession();
} catch(FutException $e) {
$reason = $e->getReason();
die("We have an error logging in: ".$reason);
}
I was receiving this error during login:
PHP Fatal error: Uncaught JsonException: Syntax error in /home/shafeey/fut-api/src/Api/AbstractCore.php:339
Stack trace:
#0 /home/shafeey/fut-api/src/Api/AbstractCore.php(339): json_decode('', true, 512, 4194304)
#1 /home/shafeey/fut-api/test.php(37): Shapecode\FUT\Client\Api\AbstractCore->login('881689')
As I looked deeper, I found that the POST request to "https://utas.external.s2.fut.ea.com:443/ut/auth?client=webcomp" is returning 403 FORBIDDEN with an empty body, which in turn results in the json_decode() exception.
fut-api/src/Api/AbstractCore.php
Line 313 in 4df924c
I'm using the following script for login and putting the code from verification email. Any idea what I am doing wrong? Thank you.
<?php
// Autoload files using the Composer autoloader.
require_once __DIR__ . '/vendor/autoload.php';
use Shapecode\FUT\Client\Api\Core;
use Shapecode\FUT\Client\Exception\FutError;
use Shapecode\FUT\Client\Authentication\Account;
use Shapecode\FUT\Client\Authentication\Credentials;
use Shapecode\FUT\Client\Authentication\Session;
$email = "[email protected]";
$password = "PASSWD";
$platform = "ps4";
$code = "999999";
$credentials = new Credentials($email, $password, $platform);
$session = null;
$account = new Account($credentials, $session);
$fut = new Core($account);
try {
$login = $fut->login($code);
$session = $account->getSession();
} catch(FutError $e) {
$reason = $e->getReason();
die("We have an error logging in: ".$reason);
}
echo "Login complete...\n";
Hello, please help to set the correct url for antigate
$api->setWebsiteURL("?");
How to contact you ?
Hello. What is commit 'Cleanup'. Нou redid the method signatures and you broke the project with this, why did you do it?
for example \Shapecode\FUT\Client\Api\AbstractCore::simpleRequest with $body signature
Hi , I installed scripts through composer and got that message 'Fatal error: Uncaught Error: Class 'FUTApi\Api\Authentication\Credentials' not found in #PATH#', when I've launched test script in web-browser . The instalation was succesfully completed through composer. What should I do to make it work ? Help me please .
When searching using an assetId of a player, e.g:
$options = ['assetId'=>199914];
$playerSearchRes = $fut->search($options);
The result is a list of all players, not limiting to this particular assetId.
Am I missing something here? Thank you.
When I install it and go to localhost/folder on my browser it comes up with a file directory of the api. Would you be able to write a short explenation on how to install?
Thanks and I apologize for asking something so simple!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.