API Index

Historical Workouts - Given Year

get archived workouts for a given year

uri:

http://c2logapi.appspot.com/api/1/historical/workouts/####

method:

GET

status codes:

200: ok
401: invalid Concept 2 Online logbook user name or password
403: invalid or missing C2 Logbook REST API key
405: method not allowed
503: throttled

Examples:


Python using httplib2

import httplib2   
import simplejson
import base64 

url = "http://powertwenty.com/c2logapi/1/historical/workouts/2010"
h = httplib2.Http()
authorizationHeader = "Basic %s"%base64.b64encode("%s:%s"%("user", "password"))
resp, content = h.request( url, "DELETE", headers={"Authorization":authorizationHeader, "X-API-KEY":"xxxxxxxxxxxxxxx" } )
assert resp["status"]=="200" 
workouts = json.loads(content)

 
 
Copyright © 2006-2015 by Power Twenty, LLC. All Rights Reserved.
Design by Interspire