Skip to content
Bryan Hazelbaker edited this page Jul 10, 2013 · 7 revisions

Astro Empires Javascript Library

Please see this original document at https://github.com/delphian/astro-empires-javascript-library/wiki

Javascript object library to facilitate access to Astro Empires data for a specific account. Because this requires cross site scripting the library is only useful when ran locally (such as in a browser extension).

License

Copyright (c) 2013 Bryan Hazelbaker [email protected] Released under the MIT license. Read the entire license located in the project root or at http://opensource.org/licenses/mit-license.php

Installation

  • git clone --recursive https://github.com/delphian/astro-empires-javascript-library.git
  • cd astro-empires-javascript-library

Use

  1. Debug this locally by launching (SEE WARNING BELOW):
  • chrome.exe --disable-web-security index.html
  1. Right click the (blank) webpage and click 'Inspect Element'.
  2. Click on the 'Show Console' button.
  3. Load up the AE object by typing:
  • var ae = new AstroEmpires.AE('juno.astroempires.com', 'email@address', 'password');
  • ae.getData();
  1. CLOSE THE BROWSER WHEN FINISHED DEBUGGING. DO NOT FORGET YOUR BROWSER IS NOT SECURE! DO NOT HIDE THE 'STABILITY AND SECURITY WILL SUFFER' WARNING! DO NOT SEARCH ON THIS BROWSER FOR FIXES TO JAVASCRIPT ISSUES! DO NOT CANCEL ARRESTED DEVELOPMENT IN THE THIRD SEASON!

Documentation & Help

  • Submit all issues or feature requests to the Issue Queue.

Feel free to contact me [email protected] with any questions.

Clone this wiki locally