bravecollective/neucore-api

Client library of Neucore API

1.33.0 2022-06-19 19:09 UTC

This package is auto-updated.

Last update: 2022-06-19 19:13:15 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.33.0
    Needs PHP ^7.4 || ^8.0
  • 1.31.1
    Updated guzzlehttp/guzzle to ^7.3 (from ^6.2 || ^7.2)
  • 1.26.0
    Needs PHP ^7.3 || ^8.0
  • 1.21.0
    Needs PHP 7.2+
  • 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

Installation & Usage

Requirements

PHP 7.4 and later. Should also work with PHP 8.0.

Composer

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

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

Then run composer install

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');

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

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 charactersBulkV1 POST /app/v1/characters Returns all characters from multiple player accounts identified by character IDs.
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 esiEveLoginCharactersV1 GET /app/v1/esi/eve-login/{name}/characters Returns character IDs of characters that have a valid ESI token of the specified EVE login.
ApplicationESIApi esiPostV1 POST /app/v1/esi See POST /app/v2/esi
ApplicationESIApi esiPostV2 POST /app/v2/esi Same as GET /app/v2/esi, but for POST requests.
ApplicationESIApi esiV1 GET /app/v1/esi See GET /app/v2/esi
ApplicationESIApi esiV2 GET /app/v2/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 groupMembersV1 GET /app/v1/group-members/{groupId} Returns the main character IDs from all group members.
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.

Models

Authorization

BearerAuth

  • Type: Bearer authentication

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

About this package

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

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