Project: Basecamp Python Client

🦖 This post was published in 2011 and is most likely outdated.

See project on github

Usage

# Import ElementTree and the Basecamp wrapper module.
import elementtree.ElementTree as ET
from basecamp import Basecamp

bc = Basecamp('https://example.basecamphq.com', 'API_KEY')

# Fetch one todo list from its ID
xml = bc.todo_list(14499317)
items = ET.fromstring(xml).findall('todo-items/todo-item')

# Let's use the ElementTree API
# to access data via path expressions:
for item in items:
    print item.find("content").text

Original Code

This code is built from the code of Jochen Kupperschmidt under the MIT Licence. Added also some suggestions from Greg Allard.