Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 369 Bytes

getBasalEnergyBurned().md

File metadata and controls

16 lines (15 loc) · 369 Bytes
let d = new Date(2016,1,1);
let options = {
    startDate: (new Date(2018,10,1)).toISOString(), // required
    endDate: (new Date()).toISOString(), // optional; default now
};
AppleHealthKit.getBasalEnergyBurned(options: Object, (err: Object, results: Object) => {
    if (err) {
        return;
    }
    console.log(results)
});