workouts
List workous
List all workouts for the logged on and authenticated user, for mer information please see workout statistics on the internet. Each individual reader must be configured to generate a workout, this is done by BRP's support staff.
Call
HTTP GET till /workouts
Filter
Name | Example | Description | Data type | Default |
---|---|---|---|---|
startdate | startdate=2012-02-02 | Returns only workouts after specified date. | Date | One month ago |
starttime | starttime=13:00 | Returns only workouts after specific time and date above. | Time | 00:00 |
enddate | enddate=2012-02-02 | Returns only workouts up to specified date. | Date | Tomorrow |
endtime | endtime=14:00 | Returns only workouts up to specified time and date above. | Time | 23:59 |
Example:
GET:APIURL/workouts.xml?apikey=338934897438
Response
Tag | Example | Format | Description |
---|---|---|---|
workouts | <workouts> | Â | Workouts tag encloses workouts |
id | ID | <id>3</id> | Unique ID |
name | String | <name>Spinning</name> | Name of workout class |
timepoint | Time | <timepoint><timestamp>1336559400</timestamp><datetime>2012-05-09 12:30</datetime><date>2012-05-09</date><time>12:30</time></timepoint> | When they worked out |
person | Â | <person> | The person who worked out |
id | ID | <id>5</id> | Unique ID |
name | String | <name>John Doe</name> | Full name |
businessunit | Â | <businessunit> | Business unit/Facility |
id | ID | <id>43</id> | Unique ID |
name | String | <name>Main Street</name> | Name of business unit/facility |
organization | Â | <organization> | The organization that the customer belongs to |
id | ID | <id>43</id> | Unique ID |
name | String | <name>Acme</name> | Name of organization |
activityid | ID | activityid>137</activityid> | Unique ID of group activity/class |
<workouts> <workout> <id>305</id> <name>Spinning</name> <timepoint> <timestamp>1336559400</timestamp> <datetime>2012-05-09 12:30</datetime> <date>2012-05-09</date> <time>12:30</time> </timepoint> <person> <id>5</id> <name>John Doe</name> </person> <businessunit> <id>43</id> <name>Main Street</name> </businessunit> <organization> <id>2</id> <name>Acme</name> </organization> <activityid>137</activityid> </workout> ... </workouts>