API Index

Current-Season Workout - Delete

deletes a Current-Season Workout. It is preferable to use the link relation 'self' contained in the workout object returned by Current-Season Workouts - get all workouts.

uri:

http://c2logapi.appspot.com/api/1/currentseason/workout/id

method:

DELETE

status codes:

204: deleted
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/currentseason/workout/10873395" 
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"]=="204"

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