This documentation is DEPRECATED and provided for legacy purposes only. Please use the updated documentation at www.amee.com/developer .

Code Examples

There are many sources for example code to get you started:

AMEE Explorer

AMEE Explorer includes code generation for Ruby, PHP, and Java. Simply find the data item you want to use, and click the code generator link. See Explorer's  Energy by Quantity category for an example. The code generated will show you exactly how to perform a calculation using that data item, including how to specify DrillDowns.

MyAMEE Templates

MyAMEE includes a number of complete off-the-shelf template applications, covering application areas from simple flight calculations through to complex monthly spreadsheet-style carbon accounting. Most of these applications are are open source. You can see them and download source code on  MyAMEE's templates page, or you can go and find the source directly on our  Github page.

Client Library examples

Pre-built libraries are available in Ruby, PHP, and Java. These each include comprehensive example code which you can use to get started quickly. See the Client Libraries page for more details and links to downloads.

Other languages

Case Studies

Some worked examples are available on our Case Studies page.