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

starttimestarttime=13:00Returns only workouts after specific time and date above.Time00:00

enddate

enddate=2012-02-02

Returns only workouts up to specified date.

Date

Tomorrow

endtimeendtime=14:00Returns only workouts up to specified time and date above.Time23: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
activityidID

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>