Games-EveOnline-API

 view release on metacpan or  search on metacpan

README.md  view on Meta::CPAN

    my $systems      = $eapi->sovereignty();
    
    # The rest of the methods require authentication.
    my $eapi = Games::EveOnline::API->new( user_id => '..', api_key => '..' );
    
    my $characters  = $eapi->characters();
    my $sheet       = $eapi->character_sheet( character_id => $character_id );
    my $in_training = $eapi->skill_in_training( character_id => $character_id );

# DEPRECATED

This module is no longer being maintained as the XML API is no more.

# DESCRIPTION

This module provides a Perl wrapper around the Eve-Online API, version 2.
The need for the wrapper arrises for two reasons.  First, the XML that
is provided by the API is overly complex, at least for my taste.  So, other
than just returning you a perl data representation of the XML, it also
simplifies the results.

Only a couple of the methods provided by this module can be used straight
away.  The rest require that you get a user\_id (keyID) and api\_key (vCode).

# A NOTE ON CACHING

Most of these methods return a 'cached\_until' value.  I've no clue if this
is CCP telling you how long you should cache the information before you
should request it again, or if this is the point at which CCP will refresh
their cache of this information.

Either way, it is good etiquet to follow the cacheing guidelines of a
provider.  If you over-use the API I'm sure you'll eventually get blocked.

# ARGUMENTS

## user\_id

An Eve Online API user ID (also known as a keyID).

## api\_key

The key, as provided Eve Online, to access the API (also known
as a vCode).

## character\_id

Set the default `character_id`.  Any methods that require
a characte ID, and are not given one, will use this one.

## api\_url

The URL that will be used to access the Eve Online API.
Defaults to [https://api.eveonline.com](https://api.eveonline.com).  Normally you
won't want to change this.

## ua

The underlying [LWP::UserAgent](https://metacpan.org/pod/LWP::UserAgent) object.  Default to a new one
with no special arguments.  Override this if you want to, for
example, enable keepalive or an HTTP proxy.

# ANONYMOUS METHODS

These methods may be called anonymously, without authentication.

## skill\_tree

    my $skill_groups = $eapi->skill_tree();

Returns a complex data structure containing the entire skill tree.
The data structure is:

    {
        cached_until => $date_time,
        $group_id    => {
            name   => $group_name,
            skills => {
                $skill_id => {
                    name                => $skill_name,
                    description         => $skill_description,
                    rank                => $skill_rank,
                    primary_attribute   => $skill_primary_attribute,
                    secondary_attribute => $skill_secondary_attribute,
                    bonuses             => {
                        $bonus_name => $bonus_value,
                    },
                    required_skills => {
                        $skill_id => $skill_level,
                    },
                }
            }
        }
    }

## ref\_types

    my $ref_types = $eapi->ref_types();

Returns a simple hash structure containing definitions of the
various financial transaction types.  This is useful when pulling
wallet information. The key of the hash is the ref type's ID, and
the value of the title of the ref type.

## sovereignty

    my $systems = $eapi->sovereignty();

Returns a hashref where each key is the system ID, and the
value is a hashref with the keys:

    name
    faction_id
    sovereignty_level
    constellation_sovereignty
    alliance_id

# RESTRICTED METHODS

These methods require authentication to use, so you must have set
the ["user\_id"](#user_id) and ["api\_key"](#api_key) arguments to use them.



( run in 2.219 seconds using v1.01-cache-2.11-cpan-75ffa21a3d4 )