mrgarymartin / cod-api-php
Call of Duty php API wrapper
dev-master
2018-12-10 21:29 UTC
Requires
- php: ^7.0
- ext-json: *
- guzzlehttp/guzzle: ^6.3
This package is auto-updated.
Last update: 2024-10-11 14:48:10 UTC
README
Installation
composer require mrgarymartin/cod-api-php
PHP
require_once 'vendor/autoload.php'; $codApi = new \mrgarymartin\CODApi($data); // Get Profile Data $data = $codApi->getBO4Profile($username, ['type' => 'blackout']); // Get Blackout Matches Stats with time limits $data = $codApi->blackout->getRawBlackoutMatchesStats($username,"2018-12-10","2018-12-11"); // Get Raw Blackout Matches Stats $data = $codApi->blackout->getRawBlackoutMatchesStats($username); // get Duo Blackout Stats $data = $codApi->blackout->getDuoBlackoutStats($username); // get Quad Blackout Stats $data = $codApi->blackout->getQuadBlackoutStats($username); // Get Solo Blackout Stats $data = $codApi->blackout->getSoloBlackoutStats($username);
License
CODApi is licensed under the MIT License.
Copyright 2018 Gary Martin