Fork me on GitHub

Basecamp Python Client

Update: it seems like the URLs for the API are now deprecated. They should be updated according to the API reference.

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.

Quentin Pleplé
June 2011