This API description is based on the api provided by http://cr-api.com
This PHP package is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Build package: class io.swagger.codegen.languages.PhpClientCodegen
PHP 5.4.0 and later
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"url": "https://github.com//.git"
}
],
"require": {
"/": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
require_once('/path/to/SwaggerClient-php/autoload.php');
To run the unit tests:
composer install
./vendor/bin/phpunit
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\DefaultApi();
$tag_id = "tag_id_example"; // string | This parameter represents the clan tag that you can find in the application
try {
$result = $api_instance->getClan($tag_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getClan: ', $e->getMessage(), PHP_EOL;
}
?>
All URIs are relative to https://api.cr-api.com/
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | getClan | GET /clan/{tag_id} | Get clan information |
DefaultApi | getProfile | GET /profile/{tag_id} | Get profile information |
- Arena
- Badge
- Card
- CardNames
- ChestCycle
- Clan
- ClanChest
- ClanItem
- Error
- Experience
- Games
- Member
- ProfileItem
- Rarity
- Region
- Roles
- Season
- ShopOffers
- Stats
All endpoints do not require authorization.