O slideshow foi denunciado.
Seu SlideShare está sendo baixado. ×

Technical introduction to AMEE

Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Carregando em…3
×

Confira estes a seguir

1 de 17 Anúncio

Mais Conteúdo rRelacionado

Semelhante a Technical introduction to AMEE (20)

Anúncio

Mais recentes (20)

Technical introduction to AMEE

  1. James Smith, Development Manager help@amee.com
  2. Web-based API for aggregation of energy & activity data, with Carbon models
  3. Applications Act On CO2 Carbonetworks Misys OpenCarbonWorld “Powered By AMEE” means you are working with authoritative models
  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
  9. Fetching Profile Categories
  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
  15. API Documentation (my.amee.com/developers)
  16. Browser Interface
  17. www.amee.com/signup help@amee.com

Notas do Editor

  • 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&apos;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&apos;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&apos;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&apos;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&apos;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&apos;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&apos;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&apos;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&apos;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&apos;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&apos;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&apos;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&apos;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&apos;s. Unpack some of the issues. climate change – survey audience

×