pichongol/fifa-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pichongol/fifa-api

Composer 安装命令:

composer create-project pichongol/fifa-api

包简介

FIFA 1p WebApp API

README 文档

README

FIFA 18 WebApp API

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

DISCONTINUED

If you wish to get a working API for FIFA 19 or require FIFA 19 projects to be completed, you can purchase access to my private repo via my Email or Skype address located below.

Installing FUTApi

The recommended way to install FIFA 18 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=dev-master

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

require 'vendor/autoload.php';

Documentation

Players database: https://www.easports.com/uk/fifa/ultimate-team/fut/database

Players database (json): https://www.easports.com/fifa/ultimate-team/web-app/content/B1BA185F-AD7C-4128-8A64-746DE4EC5A82/2018/fut/items/web/players_meta.json

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

Contact

Skype: bws-curtis
Email: wscrewey@hotmail.com

Usage

Login

Optional parameters:

  • code: [string] email/sms code for two-step verification (make sure to use string if your code starts with 0).
  • platform: [pc/ps3/ps4/xbox/xbox360].
  • emualte: [and/ios] currently DISABLED.
  • cookies: [filename] path to cookies file, if not provided it'll be created in a 'cookies' directory.
use FUTApi\Core;
use FUTApi\FutError;
try {
    $fut = new Core('email', 'password', 'secret answer', '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', 'secret answer', '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

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-07-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固