9. Category data¶
Data is grouped from all available sources into categories. The categories are:
![_images/w2e_categories.png](_images/w2e_categories.png)
Url parameter description:
- username: username of the target user
- source: name of the service the data originates from
- type: type of data
- year: year of the target data
- month: month of the target data
- day: starting day of the target data
- days: how many days of data are requested
9.1. Get activity¶
HTTP GET:
/api/users/{username}/activity/{year}/{month}/{day}/days/{days}
Example:
/api/users/jwemcudhfkfgusdhduf/activity/2013/10/29/days/1
9.2. Get measure¶
HTTP GET:
/api/users/{username}/measure/{year}/{month}/{day}/days/{days}
Example:
/api/users/jwemcudhfkfgusdhduf/measure/2014/4/27/days/2
9.3. Get sleep¶
HTTP GET:
/api/users/{username}/sleep/{year}/{month}/{day}/days/{days}
Example:
/api/users/jwemcudhfkfgusdhduf/sleep/2013/10/28/days/1