Getting Basecamp API Working with Python
Posted on April 1st, 2009 by Greg Allard in Uncategorized | Comments
I found
one library that was linked everywhere, but it wasn’t working for me. I was always getting 400 Bad Request when using it. Chris Conover was able to get the following code working.
import urllib2
protocol = ‘https://’
url = ‘example.com’
command = ‘/projects.xml’
headers = {’Accept’ : ‘application/xml’,
‘Content-type’ : ‘applications/xml’}
username = ‘x’
password = ‘y’
# Setup password stuff
passman [...]