2017 © Pedro Peláez
 

library esiswag

Swag is a PHP library for interacting with the EVE ESI API.

image

esiswag/esiswag

Swag is a PHP library for interacting with the EVE ESI API.

  • Saturday, May 12, 2018
  • by PrometheusSatyen
  • Repository
  • 0 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Swag

Swag is a library for interacting with the EVE ESI/SSO/etc. APIs., (*1)

It should be depended on via Composer., (*2)

Requirements

  • Redis

Usage

require_once('/vendor/autoload.php');

use Swag\EsiClient;
use Swag\Config;
use Swag\Sso\Token;

Config::set('eve_client_id', 'urgay');
Config::set('eve_client_secret', 'pwnd');

$client = new EsiClient();

$token = new Token('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
$client->authenticate($token);

$response = $client->get("alliances", "v1");

foreach($response->getBody() as $allianceId) {
    echo "Alliance: {$allianceId}\n";
}

Request Options

  • body - array - properties to pass in the request to esi
  • no_cache - bool - if set to true, will ignore any cached request and force request from ccp
Copyright (c) 2018, Prometheus Satyen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

The Versions

12/05 2018

dev-master

9999999-dev http://github.com/PrometheusSatyen/Swag

Swag is a PHP library for interacting with the EVE ESI API.

  Sources   Download

MIT

The Requires

 

framework rest http swagger client eve online web service esi

01/04 2018

1.0.0

1.0.0.0 http://github.com/PrometheusSatyen/Swag

Swag is a PHP library for interacting with the EVE ESI API.

  Sources   Download

MIT

The Requires

 

framework rest http swagger client eve online web service esi