Skip to content

manutrix/cr-api-php

Repository files navigation

SwaggerClient-php

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

Requirements

PHP 5.4.0 and later

Installation & Usage

Composer

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

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/SwaggerClient-php/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

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;
}

?>

Documentation for API Endpoints

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

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

[email protected]

cr-api-php

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published