nike_runs


 Resource/URI
 GETPOSTPUT DELETE
 /api/v1/people/{person.uuid}/observations/nike_runs.jsonList all Nike runs for person (given the person's uuid) (collection) x x x

GET /api/v1/people/{person.uuid}/observations/nike_runs.json
List all Nike runs for person (given the person's uuid) (collection)

Response Attributes:
uuid The unique identifier of the summary
confirmed  A flag set to true only when data for the current day is complete and when at least some use of the device was registered during the day.
obs_time The date/time of the actual exercise or activity
distance_cm The distance (in centimeters) recorded by the device during the activity
calories The approximated number of calories earned above one's baseline calorie burn.
total_seconds The total number of seconds of the activity
experience_credits_for_self The total number of Willpath Experience credits earned for doing this activity. Note that experience credits are only earned for exercise after a person has registered with Willpath. No points are given for exercise before the user signed up for Willpath.
reward_credits_for_self Same as above, except for just reward credits -- which are only earned via sponsorship and are redeemable for charity and  rewards/gifts.
author.uuid The uuid of the Person for this entry
person.uuid  Same as above
updated_at The data/time the record in Willpath last experienced updates.
created_at The date/time the record was first created in Willpath


Example:
curl -u username:password https://willpath.com/api/v1/people/2f261441-213b-49c0-92d2-8ec2eb75c13e/observations/nike_runs.json

Optional Request Parameters:
updated_since  Include this to only retrieve new updates since your last synchronization. You should use this to synchronize only the latest changes.
example: /api/v1/people/f42b4e54-7972-408c-b9c5-dce4117734a2/observations/nike_runs.json?&updated_since=2012-02-10T03:30:11Z

[
    {"nike_run":
        { "uuid":"1a11d41a-e50d-4bc8-91dd-16aab3b8bdb8",
        "confirmed":true,
        "obs_time":"2011-03-11T19:14:44Z",
        "distance_cm":15301,
        "calories":12,"
        "total_seconds":288,
        "experience_credits_for_self":0,
        "reward_credits_for_self":0,
        "author":{"uuid":"f42b4e54-7972-408c-b9c5-dce4117734a2"},
        "person":{"uuid":"f42b4e54-7972-408c-b9c5-dce4117734a2"},
        "updated_at":"2012-02-07T10:38:40Z",
        "created_at":"2012-02-07T10:38:40Z"
        }
    },
        ...
]
Comments