I'm really missing something here. Now I'm trying the full URL with that "extra" code on the end, and still getting bad result:
argDocContent = "<h2>My New Text To Append</h2> This is my new text<br/>" docURL = "http://docs.google.com/feeds/media/private/full/document %3A0ATwdKGQ8JJkGZGRqanp2ZHBfMTI3aGZiemZjYzg/fybu0pwb" #append contents to the now-existing document ms = gdata.MediaSource(file_handle=StringIO.StringIO(argDocContent), content_type='text/html', content_length=len(argDocContent)) #updated_entry = argClient.Put(ms, created_entry.GetEditMediaLink ().href + '?append=true') updated_entry = argClient.Put(ms, docURL + '?append=true') -----------------Append to WordProcessing Document ---------- Traceback (most recent call last): File "AppendGoogleDoc03.py", line 43, in <module> updated_entry = argClient.Put(ms, docURL + '?append=true') File "c:\Program Files\Google\google_appengine\gdata\service.py", line 1335, i n Put media_source=media_source, converter=converter) File "c:\Program Files\Google\google_appengine\gdata\service.py", line 1298, i n PostOrPut 'reason': server_response.reason, 'body': result_body} gdata.service.RequestError: {'status': 400, 'body': 'Invalid parameter value', ' reason': 'Bad Request'} So it just tells you "invalid parameter" but doesn't even tell you which parameter? Seems like the Python ClientLib is hiding a lot from me, so I'm not even sure which parameters it's talking about. I tried using the tool Fiddler, which captures HTTP packets from the browser, but it doesn't apparently work with non-Browsers (i.e. Python running in console mode). What other debug tools are available to me? I also tried substituting a colon for the %3A like this: docURL = "http://docs.google.com/feeds/media/private/full/document: 0ATwdKGQ8JJkGZGRqanp2ZHBfMTI3aGZiemZjYzg/fybu0pwb" but same result. Thanks, Neal --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Docs Data APIs" group. To post to this group, send email to Google-Docs-Data-APIs@googlegroups.com To unsubscribe from this group, send email to google-docs-data-apis+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~----------~----~----~----~------~----~------~--~---