bravecollective/neucore-api

Client library of Neucore API

1.14.0 2020-08-06 21:24 UTC

This package is auto-updated.

Last update: 2020-08-07 08:59:57 UTC


README

The version numbers correspond to the Neucore version numbers.

When updating, check the generator version in .openapi-generator/VERSION, a new version may break backwards compatibility.

Breaking changes

  • 1.14.0 The API is now split into several tags. This means that there are now several Api PHP classes instead of just one, the methods remain the same, but they have moved to other classes.
  • 1.4.0
    Generated from OpenAPI v3 definition file.
    The authorization configuration changed, use setAccessToken() instead of setApiKey(), see below.

OpenAPIClient-php

Client library of Neucore API

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 1.14.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen

Requirements

PHP 7.1 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "require": {
    "bravecollective/neucore-api": "^1.14"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/OpenAPIClient-php/vendor/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');



// Configure Bearer authorization: BearerAuth
$config = Brave\NeucoreApi\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Brave\NeucoreApi\Api\ApplicationApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->showV1();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ApplicationApi->showV1: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://localhost/api

Class Method HTTP request Description
ApplicationApi showV1 GET /app/v1/show Show app information.
ApplicationCharactersApi characterListV1 POST /app/v1/character-list Returns all known characters from the parameter list.
ApplicationCharactersApi charactersV1 GET /app/v1/characters/{characterId} Returns all characters of the player account to which the character ID belongs.
ApplicationCharactersApi corporationCharactersV1 GET /app/v1/corp-characters/{corporationId} Returns a list of all known characters from the corporation.
ApplicationCharactersApi corporationPlayersV1 GET /app/v1/corp-players/{corporationId} Returns a list of all players that have a character in the corporation.
ApplicationCharactersApi incomingCharactersV1 GET /app/v1/incoming-characters/{characterId} Returns all characters that were moved from another account to the player account to which the ID belongs.
ApplicationCharactersApi mainV1 GET /app/v1/main/{cid} Returns the main character of the player account to which the character ID belongs.
ApplicationCharactersApi mainV2 GET /app/v2/main/{cid} Returns the main character of the player account to which the character ID belongs.
ApplicationCharactersApi playerCharactersV1 GET /app/v1/player-chars/{playerId} Returns all characters from the player account.
ApplicationCharactersApi playerV1 GET /app/v1/player/{characterId} Returns the player account to which the character ID belongs.
ApplicationCharactersApi playerWithCharactersV1 GET /app/v1/player-with-characters/{characterId} Returns the player account to which the character ID belongs with all characters.
ApplicationCharactersApi removedCharactersV1 GET /app/v1/removed-characters/{characterId} Returns all characters that were removed from the player account to which the character ID belongs.
ApplicationESIApi esiPostV1 POST /app/v1/esi Same as GET /app/v1/esi, but for POST requests.
ApplicationESIApi esiV1 GET /app/v1/esi Makes an ESI GET request on behalf on an EVE character and returns the result.
ApplicationGroupsApi allianceGroupsBulkV1 POST /app/v1/alliance-groups Return groups of multiple alliances.
ApplicationGroupsApi allianceGroupsV1 GET /app/v1/alliance-groups/{aid} Return groups of the alliance.
ApplicationGroupsApi allianceGroupsV2 GET /app/v2/alliance-groups/{aid} Return groups of the alliance.
ApplicationGroupsApi corpGroupsBulkV1 POST /app/v1/corp-groups Return groups of multiple corporations.
ApplicationGroupsApi corpGroupsV1 GET /app/v1/corp-groups/{cid} Return groups of the corporation.
ApplicationGroupsApi corpGroupsV2 GET /app/v2/corp-groups/{cid} Return groups of the corporation.
ApplicationGroupsApi groupsBulkV1 POST /app/v1/groups Return groups of multiple players, identified by one of their character IDs.
ApplicationGroupsApi groupsV1 GET /app/v1/groups/{cid} Return groups of the character's player account.
ApplicationGroupsApi groupsV2 GET /app/v2/groups/{cid} Return groups of the character's player account.
ApplicationGroupsApi groupsWithFallbackV1 GET /app/v1/groups-with-fallback Returns groups from the character's account, if available, or the corporation and alliance.
ApplicationTrackingApi memberTrackingV1 GET /app/v1/corporation/{id}/member-tracking Return corporation member tracking data.

Documentation For Models

Documentation For Authorization

BearerAuth

  • Type: Bearer authentication

Author