API Index

User's Team

get a users team, returns 'team name' or '' if not on a team

uri:

http://c2logapi.appspot.com/api/1/user/team

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
503: throttled

Examples:


Python using httplib2

    url = "http://powertwenty.com/c2logapi/1/user/team"
    h = httplib2.Http()
    authorizationHeader = "Basic %s"%base64.b64encode("%s:%s"%("username", "password"))
    resp, content = h.request( url, "GET", headers={ "Authorization":authorizationHeader, "X-API-KEY":"xxxxxxx" } )
    assert resp["status"]=="200"
    team = json.loads(content))
    print "team name is " + team

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