Section N - Get previous duration cycle API
N1 - General Information
To get previous duration cycle for an user send a post request to
/api/v1/previous_duration_cycle with the following data:
Argument | Mandatory | Value |
---|---|---|
userId | yes | Numeric < Id of the user > |
resetType | yes | Text < monthly, weekly, daily > |
startDate | yes | dd-mm-yyyy |
N2 - Sample Output
[
{
"0":{
"duration":"2 hours 49 minutes 24 seconds"
},
"endDate":"01-10-2015",
"startDate":"01-09-2015"
},
{
"0":{
"duration":"23 minutes 56 seconds"
},
"endDate":"01-09-2015",
"startDate":"01-08-2015"
}
]