我现在有来自 Lifelog API 的实际数据,格式如下
{
"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 ]
}
}
...
]
}
这很好,但我想要的是计算卡路里。如何使用 API 执行此操作?