我试图通过javascript / node.js从jawbone服务器中提取静息心率数据。我不断阅读财产得到。这是导致错误的代码的一部分。似乎我对接收器静息心率没有正确的命名约定
up.heartrates.get({}, function(err, body) {
if (err) {
console.log('Error receiving Jawbone UP data');
} else {
jawboneDataheart = JSON.parse(body).data;
for (i = 0; i < jawboneDataheart.items.length; i++) {
date = jawboneDataheart.items[i].date.toString(),
year = date.slice(0,4),
month = date.slice(4,6),
day = date.slice(6,8);
jawboneDataheart.items[i].date = month + '/' + day + '/' + year;
jawboneDataheart.items[i].title = jawboneDataheart.items[i].title.replace('for ', '');
}}});