Difference between revisions of "API"

From Earth Empires Wiki
Jump to: navigation, search
m
Line 9: Line 9:
 
==Request Format==
 
==Request Format==
 
Once you have a key, you will be granted permission to a forum which is dedicated to helping and  answering developers' questions. All updates concerning the API and it's use are noted here. Developers should check this often. There are many examples of how to '''properly''' use the API. it is highly recommended you learn about [[Wikipedia:gzip|.gzip]] compression with the use of your platform to help [[EE]] conserve bandwidth.
 
Once you have a key, you will be granted permission to a forum which is dedicated to helping and  answering developers' questions. All updates concerning the API and it's use are noted here. Developers should check this often. There are many examples of how to '''properly''' use the API. it is highly recommended you learn about [[Wikipedia:gzip|.gzip]] compression with the use of your platform to help [[EE]] conserve bandwidth.
 +
 +
[[Category:Technical Information]]

Revision as of 23:25, 26 November 2010

An API key is used to access in-game news feeds such as ranks, news and market data. This information can then be used to create community-based sites similar to Boxcar or EEstats. There are many different sites that use this game data to benefit their alliance or the community in general.

How to get an API key

If you would like access to game feeds, you must request an API key from qzjul or Pangaea, in #earthempires (IRC), or on the Earth Empires forums.

Usage

Once you have an API key, the data is fairly easy to acquire. A simple HTTP request can be used to access this data which is sent in a CSV format. It is then up to the developer's discretion as to how to parse and display the data for human consumption.

Request Format

Once you have a key, you will be granted permission to a forum which is dedicated to helping and answering developers' questions. All updates concerning the API and it's use are noted here. Developers should check this often. There are many examples of how to properly use the API. it is highly recommended you learn about .gzip compression with the use of your platform to help EE conserve bandwidth.