Skip to content

Commit

Permalink
update to newest version
Browse files Browse the repository at this point in the history
  • Loading branch information
nullx27 committed Mar 27, 2017
1 parent 66be7b1 commit 6f3e56d
Show file tree
Hide file tree
Showing 685 changed files with 61,132 additions and 12,387 deletions.
18 changes: 18 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

return Symfony\CS\Config::create()
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->setUsingCache(true)
->fixers(
[
'ordered_use',
'phpdoc_order',
'short_array_syntax',
'strict',
'strict_param'
]
)
->finder(
Symfony\CS\Finder\DefaultFinder::create()
->in(__DIR__)
);
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ php:
- 7.0
- hhvm
before_install: "composer install"
script: "phpunit lib/Tests"
script: "vendor/bin/phpunit"
185 changes: 144 additions & 41 deletions README.md

Large diffs are not rendered by default.

13 changes: 1 addition & 12 deletions autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,10 @@
*
* An OpenAPI for EVE Online
*
* OpenAPI spec version: 0.3.10.dev17
* OpenAPI spec version: 0.4.2.dev16
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/**
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"name": "nullx27/esi-php",
"version": "0.1",
"description": "EVE Online ESI Api Client for PHP",
"version": "1.1",
"description": "EVE Online ESI for PHP",
"keywords": [
"swagger",
"php",
"sdk",
"api"
],
"homepage": "http://swagger.io",
"license": "Apache v2",
"license": "proprietary",
"authors": [
{
"name": "Swagger and contributors",
Expand All @@ -25,7 +24,8 @@
"require-dev": {
"phpunit/phpunit": "~4.8",
"satooshi/php-coveralls": "~1.0",
"squizlabs/php_codesniffer": "~2.6"
"squizlabs/php_codesniffer": "~2.6",
"friendsofphp/php-cs-fixer": "~1.12"
},
"autoload": {
"psr-4": { "nullx27\\ESI\\" : "src/" }
Expand Down
40 changes: 30 additions & 10 deletions docs/Api/AllianceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Method | HTTP request | Description


# **getAlliances**
> int[] getAlliances($datasource)
> int[] getAlliances($datasource, $userAgent, $xUserAgent)
List all alliances

Expand All @@ -25,9 +25,11 @@ require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new nullx27\ESI\Api\AllianceApi();
$datasource = "tranquility"; // string | The server name you would like data from
$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers
$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent

try {
$result = $api_instance->getAlliances($datasource);
$result = $api_instance->getAlliances($datasource, $userAgent, $xUserAgent);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AllianceApi->getAlliances: ', $e->getMessage(), PHP_EOL;
Expand All @@ -40,6 +42,8 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**datasource** | **string**| The server name you would like data from | [optional] [default to tranquility]
**userAgent** | **string**| Client identifier, takes precedence over headers | [optional]
**xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional]

### Return type

Expand All @@ -57,7 +61,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **getAlliancesAllianceId**
> \nullx27\ESI\Models\GetAlliancesAllianceIdOk getAlliancesAllianceId($allianceId, $datasource)
> \nullx27\ESI\Models\GetAlliancesAllianceIdOk getAlliancesAllianceId($allianceId, $datasource, $userAgent, $xUserAgent)
Get alliance information

Expand All @@ -71,9 +75,11 @@ require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new nullx27\ESI\Api\AllianceApi();
$allianceId = 56; // int | An Eve alliance ID
$datasource = "tranquility"; // string | The server name you would like data from
$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers
$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent

try {
$result = $api_instance->getAlliancesAllianceId($allianceId, $datasource);
$result = $api_instance->getAlliancesAllianceId($allianceId, $datasource, $userAgent, $xUserAgent);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AllianceApi->getAlliancesAllianceId: ', $e->getMessage(), PHP_EOL;
Expand All @@ -87,6 +93,8 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**allianceId** | **int**| An Eve alliance ID |
**datasource** | **string**| The server name you would like data from | [optional] [default to tranquility]
**userAgent** | **string**| Client identifier, takes precedence over headers | [optional]
**xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional]

### Return type

Expand All @@ -104,7 +112,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **getAlliancesAllianceIdCorporations**
> int[] getAlliancesAllianceIdCorporations($allianceId, $datasource)
> int[] getAlliancesAllianceIdCorporations($allianceId, $datasource, $userAgent, $xUserAgent)
List alliance's corporations

Expand All @@ -118,9 +126,11 @@ require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new nullx27\ESI\Api\AllianceApi();
$allianceId = 56; // int | An EVE alliance ID
$datasource = "tranquility"; // string | The server name you would like data from
$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers
$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent

try {
$result = $api_instance->getAlliancesAllianceIdCorporations($allianceId, $datasource);
$result = $api_instance->getAlliancesAllianceIdCorporations($allianceId, $datasource, $userAgent, $xUserAgent);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AllianceApi->getAlliancesAllianceIdCorporations: ', $e->getMessage(), PHP_EOL;
Expand All @@ -134,6 +144,8 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**allianceId** | **int**| An EVE alliance ID |
**datasource** | **string**| The server name you would like data from | [optional] [default to tranquility]
**userAgent** | **string**| Client identifier, takes precedence over headers | [optional]
**xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional]

### Return type

Expand All @@ -151,7 +163,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **getAlliancesAllianceIdIcons**
> \nullx27\ESI\Models\GetAlliancesAllianceIdIconsOk getAlliancesAllianceIdIcons($allianceId, $datasource)
> \nullx27\ESI\Models\GetAlliancesAllianceIdIconsOk getAlliancesAllianceIdIcons($allianceId, $datasource, $userAgent, $xUserAgent)
Get alliance icon

Expand All @@ -165,9 +177,11 @@ require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new nullx27\ESI\Api\AllianceApi();
$allianceId = 56; // int | An EVE alliance ID
$datasource = "tranquility"; // string | The server name you would like data from
$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers
$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent

try {
$result = $api_instance->getAlliancesAllianceIdIcons($allianceId, $datasource);
$result = $api_instance->getAlliancesAllianceIdIcons($allianceId, $datasource, $userAgent, $xUserAgent);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AllianceApi->getAlliancesAllianceIdIcons: ', $e->getMessage(), PHP_EOL;
Expand All @@ -181,6 +195,8 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**allianceId** | **int**| An EVE alliance ID |
**datasource** | **string**| The server name you would like data from | [optional] [default to tranquility]
**userAgent** | **string**| Client identifier, takes precedence over headers | [optional]
**xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional]

### Return type

Expand All @@ -198,7 +214,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **getAlliancesNames**
> \nullx27\ESI\Models\GetAlliancesNames200Ok[] getAlliancesNames($allianceIds, $datasource)
> \nullx27\ESI\Models\GetAlliancesNames200Ok[] getAlliancesNames($allianceIds, $datasource, $userAgent, $xUserAgent)
Get alliance names

Expand All @@ -212,9 +228,11 @@ require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new nullx27\ESI\Api\AllianceApi();
$allianceIds = array(56); // int[] | A comma separated list of alliance IDs
$datasource = "tranquility"; // string | The server name you would like data from
$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers
$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent

try {
$result = $api_instance->getAlliancesNames($allianceIds, $datasource);
$result = $api_instance->getAlliancesNames($allianceIds, $datasource, $userAgent, $xUserAgent);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AllianceApi->getAlliancesNames: ', $e->getMessage(), PHP_EOL;
Expand All @@ -228,6 +246,8 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**allianceIds** | [**int[]**](../Model/int.md)| A comma separated list of alliance IDs |
**datasource** | **string**| The server name you would like data from | [optional] [default to tranquility]
**userAgent** | **string**| Client identifier, takes precedence over headers | [optional]
**xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional]

### Return type

Expand Down
10 changes: 8 additions & 2 deletions docs/Api/AssetsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Method | HTTP request | Description


# **getCharactersCharacterIdAssets**
> \nullx27\ESI\Models\GetCharactersCharacterIdAssets200Ok[] getCharactersCharacterIdAssets($characterId, $datasource)
> \nullx27\ESI\Models\GetCharactersCharacterIdAssets200Ok[] getCharactersCharacterIdAssets($characterId, $datasource, $token, $userAgent, $xUserAgent)
Get character assets

Expand All @@ -25,9 +25,12 @@ nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCES
$api_instance = new nullx27\ESI\Api\AssetsApi();
$characterId = 56; // int | Character id of the target character
$datasource = "tranquility"; // string | The server name you would like data from
$token = "token_example"; // string | Access token to use, if preferred over a header
$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers
$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent

try {
$result = $api_instance->getCharactersCharacterIdAssets($characterId, $datasource);
$result = $api_instance->getCharactersCharacterIdAssets($characterId, $datasource, $token, $userAgent, $xUserAgent);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AssetsApi->getCharactersCharacterIdAssets: ', $e->getMessage(), PHP_EOL;
Expand All @@ -41,6 +44,9 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**characterId** | **int**| Character id of the target character |
**datasource** | **string**| The server name you would like data from | [optional] [default to tranquility]
**token** | **string**| Access token to use, if preferred over a header | [optional]
**userAgent** | **string**| Client identifier, takes precedence over headers | [optional]
**xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional]

### Return type

Expand Down
20 changes: 16 additions & 4 deletions docs/Api/BookmarksApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Method | HTTP request | Description


# **getCharactersCharacterIdBookmarks**
> \nullx27\ESI\Models\GetCharactersCharacterIdBookmarks200Ok[] getCharactersCharacterIdBookmarks($characterId, $datasource)
> \nullx27\ESI\Models\GetCharactersCharacterIdBookmarks200Ok[] getCharactersCharacterIdBookmarks($characterId, $datasource, $token, $userAgent, $xUserAgent)
List bookmarks

Expand All @@ -26,9 +26,12 @@ nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCES
$api_instance = new nullx27\ESI\Api\BookmarksApi();
$characterId = 56; // int | An EVE character ID
$datasource = "tranquility"; // string | The server name you would like data from
$token = "token_example"; // string | Access token to use, if preferred over a header
$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers
$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent

try {
$result = $api_instance->getCharactersCharacterIdBookmarks($characterId, $datasource);
$result = $api_instance->getCharactersCharacterIdBookmarks($characterId, $datasource, $token, $userAgent, $xUserAgent);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BookmarksApi->getCharactersCharacterIdBookmarks: ', $e->getMessage(), PHP_EOL;
Expand All @@ -42,6 +45,9 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**characterId** | **int**| An EVE character ID |
**datasource** | **string**| The server name you would like data from | [optional] [default to tranquility]
**token** | **string**| Access token to use, if preferred over a header | [optional]
**userAgent** | **string**| Client identifier, takes precedence over headers | [optional]
**xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional]

### Return type

Expand All @@ -59,7 +65,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **getCharactersCharacterIdBookmarksFolders**
> \nullx27\ESI\Models\GetCharactersCharacterIdBookmarksFolders200Ok[] getCharactersCharacterIdBookmarksFolders($characterId, $datasource)
> \nullx27\ESI\Models\GetCharactersCharacterIdBookmarksFolders200Ok[] getCharactersCharacterIdBookmarksFolders($characterId, $datasource, $token, $userAgent, $xUserAgent)
List bookmark folders

Expand All @@ -76,9 +82,12 @@ nullx27\ESI\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCES
$api_instance = new nullx27\ESI\Api\BookmarksApi();
$characterId = 56; // int | An EVE character ID
$datasource = "tranquility"; // string | The server name you would like data from
$token = "token_example"; // string | Access token to use, if preferred over a header
$userAgent = "userAgent_example"; // string | Client identifier, takes precedence over headers
$xUserAgent = "xUserAgent_example"; // string | Client identifier, takes precedence over User-Agent

try {
$result = $api_instance->getCharactersCharacterIdBookmarksFolders($characterId, $datasource);
$result = $api_instance->getCharactersCharacterIdBookmarksFolders($characterId, $datasource, $token, $userAgent, $xUserAgent);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BookmarksApi->getCharactersCharacterIdBookmarksFolders: ', $e->getMessage(), PHP_EOL;
Expand All @@ -92,6 +101,9 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**characterId** | **int**| An EVE character ID |
**datasource** | **string**| The server name you would like data from | [optional] [default to tranquility]
**token** | **string**| Access token to use, if preferred over a header | [optional]
**userAgent** | **string**| Client identifier, takes precedence over headers | [optional]
**xUserAgent** | **string**| Client identifier, takes precedence over User-Agent | [optional]

### Return type

Expand Down
Loading

0 comments on commit 6f3e56d

Please sign in to comment.