fut/request-forge
Composer 安装命令:
composer require fut/request-forge
包简介
Request forge for Fifa Ultimate Team.
README 文档
README
Connector class for mobile endpoint of Fifa 14 Ultimate Team. Also you can use composer to install the connectors
composer.json
require { "fut/request-forge": "dev-master" }
Example: (also see example.php)
require_once __DIR__ . "/vendor/autoload.php"; use GuzzleHttp\Client; use GuzzleHttp\Cookie\CookieJar; use GuzzleHttp\Subscriber\Cookie as CookieSubscriber; use Fut\Request\Forge; $client = new Client(); $cookieJar = new CookieJar(); $cookieSubscriber = new CookieSubscriber($cookieJar); $client->getEmitter()->attach($cookieSubscriber); $export = array( 'nucleusId' => 'my-nucleusId', 'sessionId' => 'my-sessionId', 'phishingToken' => 'my-phishingToken' ); Forge::setPlatform(Forge::PLATFORM_PLAYSTATION); Forge::setEndpoint(Forge::ENDPOINT_MOBILE); // example for playstation accounts to get the credits // 3. parameter of the forge factory is the actual real http method // 4. parameter is the overridden method for the webapp headers $forge = Forge::getForge($client, '/ut/game/fifa14/user/credits', 'post', 'get'); $json = $forge ->setNucId($export['nucleusId']) ->setSid($export['sessionId']) ->setPhishing($export['phishingToken']) ->getJson(); echo "you have " . $json['credits'] . " coins" . PHP_EOL;
统计信息
- 总下载量: 287
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-05-19