GithubHelp home page GithubHelp logo

andyheinz / fut-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mdagostino/fut-api

0.0 1.0 0.0 78 KB

Manage your FIFA Ultimate Team with this FIFA 19 WebApp API PHP framework.

Home Page: http://curtiscrewe.co.uk

PHP 100.00%

fut-api's Introduction

FIFA 19 WebApp API

Manage your FIFA 19 Ultimate Team using this FIFA 19 Ultimate Team API. Written solely in PHP

FIFA 19 Autobuyer

Written using this API you can find a completed FIFA 19 Autobuyer here: FUT19 Buyer

FIFA 19 Projects

If you require any projects/systems to be developed alongside the FIFA 19 WebApp API then be sure to contact me using one of the methods below.

Skype: bws-curtis
Email: [email protected]
Website: https://curtiscrewe.co.uk

Installing FUTApi

The recommended way to install FIFA 19 WebApp API is through Composer.

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next, run the Composer command to install the latest stable version of Guzzle:

composer require inkedcurtis/fut-api

After installing, you need to require Composer's autoloader:

require 'vendor/autoload.php';

Documentation

Python source provided by: https://github.com/futapi/fut/

Contact

Skype: bws-curtis
Email: [email protected]

Usage

Login

Login parameters:

  • email: [string] email used for logging into the FIFA 19 WebApp
  • password: [string] password used for logging into the FIFA 19 WebApp
  • platform: [string] pc/ps4/ps4/xbox/xbox360
  • code: [string] email/sms code for two-step verification (make sure to use string if your code starts with 0).
  • emulate: [string] currently DISABLED.
  • cookies: [string] path to cookies file, if not provided it'll be created in your temp system directory.
use FUTApi\Core;
use FUTApi\FutError;
try {
    $fut = new Core('email', 'password', 'platform', 'backup_code');
} catch(FutError $e) {
    $error = $e->GetOptions();
    die("We have an error logging in: ".$error['reason']);
}
$login = $fut->login();

After you have initiated your first session, you can then use the API wthout logging in again using the session info from your original login array:

use FUTApi\Core;
use FUTApi\FutError;
$fut = new Core('email', 'password', 'platform', 'backup_code');
$fut->setSession($persona, $nucleus, $phishing, $session, $dob);

Search

Optional parameters:

  • min_price: [int] Minimal price.
  • max_price: [int] Maximum price.
  • min_buy: [int] Minimal buy now price.
  • max_buy: [int] Maximum buy now price.
  • level: ['bronze'/'silver'/gold'] Card level.
  • start: [int] Start page number.
  • category: ['fitness'/'?'] Card category.
  • assetId: [int] assetId.
  • defId: [int] defId.
  • league: [int] League id.
  • club: [int] Club id.
  • position: [int?/str?] Position.
  • zone: ['attacker'/'?'] zone.
  • nationality: [int] Nation id.
  • rare: [boolean] True for searching special cards.
  • playStyle: [str?] playStyle.
  • page_size: [int] Amount of cards on single page (changing this might be risky).
$items = $fut->searchAuctions('player');

Logout

Replicates clicking the Logout button.

$fut->logout();

License

GNU GPLv3

fut-api's People

Contributors

coverj avatar futdev avatar

Watchers

 avatar

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.