Sunday, December 9, 2007

Blah... ugly API ;-)

By last days I tried to add to my AddOn for OpenOffice.org functionality for updating existing documents....
In theory it should be easy and be done by code like this:

String editLink = newDocument.getEditLink().getHref();
DocumentListEntry uploaded = service.updateMedia(new URL(editLink),newDocument);


But it doesn't work :-(
Instead of this I got error message like this:
Bad Request
Entry ID does not match the request header: 'document%3ApartOfID_AndSecondPart' vs. '/documents/private/full/document%3ApartOfID_AndSecondPart'

Ugly API, ugly.... ;-)


Similar postsbeta
Not sa ugly API ;-)
Yeah... It's snowing... again....
How many i 1+1 in Java? ;-)
New issue to Google Docs API to vote for :-)
OpenOffice.org2GoogleDocs 1.4.1

No comments:

Post a Comment