Dear Michele and Caleb, Thanks SO MUCH for the great responses.
Love and peace, Joe On Jan 25, 2:07 am, cjrh <[email protected]> wrote: > On Jan 25, 9:26 am, JoeCodeswell <[email protected]> wrote: > > > should be > > import urllib, urllib2, base64 > > Fixed. > > > should be > > req = urllib2.Request('http://twitter.com/statuses/update.json', > > args, headers) > > Fixed. > > > I think '/statuses/' could possibly be a misspelling. Does anyone > > know? > > In the link referred-to by Michele, it seems that the API calls look > more like this: > > resp, content = client.request( > 'http://api.twitter.com/1/statuses/update.json', > "POST", > body=data) > if resp['status'] != '200': #manage the error > response.flash = "%s: %s" % (T("Could not send tweet!"), resp) > else: > response.flash = T("Tweet sent!") > > If someone could suggest a change to the book example to resolve the > error, I'd be happy to make the change.

