GithubHelp home page GithubHelp logo

aionphpapi's Introduction

This project has been forked by Yumi Nanako / Yumi (Mythical) of Israphel

Original Description:

I originally wrote this API for my signuture generator, and I was planning on using it heavily and expanding on it down the road. However, I quit Aion and have little interest it continuing to work on an API for a game I no longer play.

Instead, I figure I should release it to the public. I'm sure someone can make use of this and possibly expand on it later (include clan stats, etc).

Since I won't be updating this API anymore, as soon as NCSoft changes the wrong thing on their website, this API may no longer work. But as for now, it should work just fine.

Usage

Here is an example (albeit simple):

<?php

require("aionAPI.php");
$user = new aionProfile( "Yumi", "Israphel" ); // or aionProfile( "Yumi", "Israphel", "na" )
$data = $user->userData();

echo $data['name'] . " has " . $data['total_kills'] . " kills and " . $data['abyss_points'] . " Abyss Points.";

?>

That example file would output:

Nig has 560 kills and 32382 Abyss Points.

Here's another example file that lists every piece of information the API can pull from the Aion website:

<?php

require("aionAPI.php");

/* aionProfile( charname, servername, na - default / eu ) */
$user = new aionProfile( "Yumi", "Israphel" ); 
$data = $user->userData();

echo $data['name'] . "<br />";            // Player's name
echo $data['level'] . "<br />";           // Player's level
echo $data['title'] . "<br />";           // Player's title
echo $data['class'] . "<br />";           // Player's class
echo $data['race'] . "<br />";            // Elyos or Asmodian 
echo $data['server'] . "<br />";          // Player's server
echo $data['image'] . "<br />";           // Player's avatar
echo $data['abyss_rank'] . "<br />";      // Player's current abyss rank
echo $data['abyss_points'] . "<br />";    // Player's current abyss points
echo $data['rank'] . "<br />";            // ???
echo $data['total_rank'] . "<br />";      // Player's highest abyss rank
echo $data['total_kills'] . "<br />";     // Player's kill count
echo $data['clan'] . "<br />";            // Player's clan
echo $data['clan_url'] . "<br />";        // Link to player's clan
echo $data['hp'] . "<br />";              // Player's HP
echo $data['mp'] . "<br />";              // Player's MP
?>

ยฉ 2010 Blake Harley and Yumi Nanako โ€” all rights reserved.

aionphpapi's People

Contributors

yumileroy avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.