@@ -367,6 +368,30 @@ the function will be called with an array of elements `res` containing date and
...
@@ -367,6 +368,30 @@ the function will be called with an array of elements `res` containing date and
___
___
#### **`saveSteps`**
save a step count sample. a step count sample represents the number of steps during a specific period of time. a sample should be a precise as possible, with startDate and endDate representing the range of time the steps were taken in.
`saveSteps` accepts an options object containing required *`value: number`*, *`startDate: ISO8601Timestamp`*, and *`endDate: ISO8601Timestamp`*.
```javascript
// startDate and endDate are 30 minutes apart. this means the step count value occured within those 30 minutes.