I have actual data coming in from the Lifelog API now in the below format
{
"result" : [
...
{
"id" : "ba2e7500-e022-4daf-817b-1e607e0cff43",
"type" : "physical",
"subtype" : "walk",
"sources" : [
{
"name" : "abc123",
"id" : "42ad35b065e880a3",
"type" : "phone"
}
],
"startTime" : "2014-06-09T10:54:00.000+01:00",
"endTime" : "2014-06-09T10:57:00.000+01:00",
"details" : {
"steps" : [ 20, 28, 19 ],
"distance" : [ 13.662, 19.1268, 12.9789 ],
"aee" : [ 2.1361, 2.1361, 2.1361 ],
"tee" : [ 3.1361, 3.1361, 3.1361 ]
}
}
...
]
}
This is great but what I want is to calculate calories. How do I do this with the API?