diff --git a/README.md b/README.md index f0d18b5bf48a178575354b5311fb36251dd898fc..feb89c8857d89daa8885552f5812e486e29124c5 100644 --- a/README.md +++ b/README.md @@ -916,7 +916,6 @@ AppleHealthKit.getSleepSamples(options, (err: Object, samples: Array) => ___ #### **`saveMindfulSession`** -saveMindfulSession each mindfulness sample represents a period of time with a startDate and an endDate. the options must contain `startDate` and `endDate` @@ -926,6 +925,14 @@ let options = { startDate: (new Date(2016,10,1)).toISOString(), // required 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') +}); ```