Commit 0687bc52 authored by skleest's avatar skleest

update readme more

parent ea00912f
...@@ -916,7 +916,6 @@ AppleHealthKit.getSleepSamples(options, (err: Object, samples: Array<Object>) => ...@@ -916,7 +916,6 @@ AppleHealthKit.getSleepSamples(options, (err: Object, samples: Array<Object>) =>
___ ___
#### **`saveMindfulSession`** #### **`saveMindfulSession`**
saveMindfulSession
each mindfulness sample represents a period of time with a startDate and an endDate. each mindfulness sample represents a period of time with a startDate and an endDate.
the options must contain `startDate` and `endDate` the options must contain `startDate` and `endDate`
...@@ -926,6 +925,14 @@ let options = { ...@@ -926,6 +925,14 @@ let options = {
startDate: (new Date(2016,10,1)).toISOString(), // required startDate: (new Date(2016,10,1)).toISOString(), // required
endDate: (new Date()).toISOString(), // optional; default now endDate: (new Date()).toISOString(), // optional; default now
}; };
AppleHealthKit.saveMindfulSession({
startDate: startDate,
endDate: endDate
}, (err, res) => {
if (err) return console.log(err)
console.log('Mindful session saved')
});
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment