The document describes an API for aggregating energy and activity data with carbon modeling capabilities. It provides details on authentication, storing user data in profiles, retrieving data categories and items, and documentation resources. The API allows developers to access authoritative models and store user data to calculate carbon footprints in 3 sentences or less.
4. API Details
RESTful HTTP API Authoritative
Your Data
XML, JSON and Atom Models
PUT
Profiles
Store your energy
data and history Data Profiles
Data
Industry standard models, GET
applied to calculate
carbon result CO2 Result
5. Getting Started
Sign up for a free API key:
http://my.amee.com/signup Sign Up
Staging platform FREE
http://stage.amee.com
Free access for Develop using stage.amee.com
development & testing
Live platform
http://live.amee.com Release using live.amee.com
Production platform
6. Authentication
All API requests require authentication
HTTP Basic
Username/password sent with each request
Authentication Sessions
One-time login
Get back and authToken and send with subsequent requests
Tokens expire after two hours, or half an hour of inactivity
7. Storing Data
Store your data in AMEE profiles
Create as many profiles as you like, and choose what they represent
No personal data stored in AMEE
Profiles are identified only by random UID string
POST /profiles
Accept: application/xml
Content-Type: application/x-www-form-urlencoded
Set-Cookie: authToken: <authtoken>
profile=true
8. Profile Categories
Category Hierarchy in
each profile
Similar to a folder structure
Top Level
Home,Business,Transport,etc.
Profile Items
Contained within categories
Store your data
10. Creating Profile Items
POST /profiles/7C7D68C2A7CD/home/energy/quantity
Accept: application/xml
Content-Type: application/x-www-form-urlencoded
Set-Cookie: authToken: <authtoken>
dataItemUid=66056991EE23&energyConsumption=1000
HTTP/1.1 201 CREATED
Location: https://stage.amee.com/profiles/7C7D68C2A...
11. Profile History
ISO 8601 times/durations
startDate / endDate Series1 Series1 Series1
2009-08-13T09:22Z
Series2 Series2
duration
P23DT23H
Item names TIME
Distinguish separate series of
same item in same category
12. The Data API
Category hierarchy
as for profiles
contains data items
Items store science data
e.g. CO2 emission factors
Data items have unique UIDs
but...
13. Drilldowns
Data Item UIDs CAN CHANGE
They change between platforms
Do not hardcode UIDs in your app – it WILL break when you go live
Item names DO NOT CHANGE
Use drilldown resource to convert item names into UIDs
GET /data/home/energy/quantity/drill?type=gas
Accept: application/xml
Set-Cookie: authToken: <authtoken>
14. Data Documentation
AMEE Data Wiki: http://wiki.amee.com
Contains detailed documentation on all elements in AMEE
Including calculations and sources
Helps you discover and choose which data to use
Notes on self day job, amazon, spare time 4 people part tijme going to cover a wide range of topics, something for everyone in this presentation history 3 years carbon calc's. Unpack some of the issues. climate change – survey audience
Notes on self day job, amazon, spare time 4 people part tijme going to cover a wide range of topics, something for everyone in this presentation history 3 years carbon calc's. Unpack some of the issues. climate change – survey audience
Notes on self day job, amazon, spare time 4 people part tijme going to cover a wide range of topics, something for everyone in this presentation history 3 years carbon calc's. Unpack some of the issues. climate change – survey audience
Notes on self day job, amazon, spare time 4 people part tijme going to cover a wide range of topics, something for everyone in this presentation history 3 years carbon calc's. Unpack some of the issues. climate change – survey audience
Notes on self day job, amazon, spare time 4 people part tijme going to cover a wide range of topics, something for everyone in this presentation history 3 years carbon calc's. Unpack some of the issues. climate change – survey audience
Notes on self day job, amazon, spare time 4 people part tijme going to cover a wide range of topics, something for everyone in this presentation history 3 years carbon calc's. Unpack some of the issues. climate change – survey audience
Notes on self day job, amazon, spare time 4 people part tijme going to cover a wide range of topics, something for everyone in this presentation history 3 years carbon calc's. Unpack some of the issues. climate change – survey audience
Notes on self day job, amazon, spare time 4 people part tijme going to cover a wide range of topics, something for everyone in this presentation history 3 years carbon calc's. Unpack some of the issues. climate change – survey audience
Notes on self day job, amazon, spare time 4 people part tijme going to cover a wide range of topics, something for everyone in this presentation history 3 years carbon calc's. Unpack some of the issues. climate change – survey audience
Notes on self day job, amazon, spare time 4 people part tijme going to cover a wide range of topics, something for everyone in this presentation history 3 years carbon calc's. Unpack some of the issues. climate change – survey audience
Notes on self day job, amazon, spare time 4 people part tijme going to cover a wide range of topics, something for everyone in this presentation history 3 years carbon calc's. Unpack some of the issues. climate change – survey audience
Notes on self day job, amazon, spare time 4 people part tijme going to cover a wide range of topics, something for everyone in this presentation history 3 years carbon calc's. Unpack some of the issues. climate change – survey audience
Notes on self day job, amazon, spare time 4 people part tijme going to cover a wide range of topics, something for everyone in this presentation history 3 years carbon calc's. Unpack some of the issues. climate change – survey audience
Notes on self day job, amazon, spare time 4 people part tijme going to cover a wide range of topics, something for everyone in this presentation history 3 years carbon calc's. Unpack some of the issues. climate change – survey audience