API Index

Historical Monthly Summaries - Delete All

deletes all summaries

uri:

http://c2logapi.appspot.com/api/1/historical/monthlysummaries

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/historical/monthlysummaries"
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