Giter Club home page Giter Club logo

fut-api's People

Contributors

nicklog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fut-api's Issues

Login Session recover

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?

cURL error

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.

Fatal error: Uncaught GuzzleHttp\Exception\TooManyRedirectsException: Will not follow more than 5 redirects

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

FIFA 21

Hello! Thanks for your hard work.
Are there any plans to adapt for FIFA 21?

Composer installation error

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

cannot search for squad fitness

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',
        ];

Javascript object

What is the js object where research and auction data are stored?

Fatal error: Uncaught Http\Discovery\Exception\DiscoveryFailedException

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);
}

Server returns 403 Forbidden error on auth step

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.

$call = $this->simpleRequest('POST', $this->getFutAuthUrl(), [

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";

Anticaptcha api url

Hello, please help to set the correct url for antigate
$api->setWebsiteURL("?");

Fifa 21. Cleanup

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

Problem with instalation

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 .

fut->search() with assetId not working

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.

How to install with Xampp?

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.