Sunday, December 9, 2007

Blah... ugly API ;-)

By last days I tried to add to my AddOn for 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....
Using Pythonista to Journaling ;-)
New issue to Google Docs API to vote for :-)
Coding without IDE

No comments:

Post a Comment