Code Samples‎ > ‎

curl (command line)

Some examples:

# Get all consenting People on Willpath updated since Feb 10th, 2012 at 12:36:42 UTC - and pipe the result to gunzip for decompression
curl -u "username:password" -H "Accept-Encoding: gzip,deflate" https://willpath.com/api/v1/people.json?&updated_since=2012-02-10T12:36:42Z | gunzip

# Get all FitbitSummaries since the updated_since date for the Person with the uuid specified: 
curl -u username:password -H "Accept-Encoding: gzip,deflate" https://willpath.com/api/v1/people/2f261441-213b-49c0-92d2-8ec2eb75c13e/observations/fitbit_summaries.json?&updated_since=2012-02-10T12:36:42Z | gunzip

# note: You don't need to use the gzip compression, but we recommend it to minimize network bandwidth and reduce resource consumption.
Comments