The only headers you need to specify are the Content-Type,Content-Length, and Authorization header. See this example: http://code.google.com/apis/documents/docs/2.0/developers_guide_protocol.html#UploadingWOMetadata
<http://code.google.com/apis/documents/docs/2.0/developers_guide_protocol.html#UploadingWOMetadata> Eric On Thu, Aug 13, 2009 at 9:25 PM, compkarori <compkar...@gmail.com> wrote: > > I'm new to this, and reading the API documents I have a couple of > questions. > > 1. When uploading eg. a Word document, do I send this as binary, or do > I need to base64 encode it first, and specify this in the Content- > Transfer-Encoding > 2. Do I need to specify the content-disposition headers ? > 3. If I want to upload this document to a particular folder, is the > folder_id mentioned the name of the folder, or do I need to first get > a list of folders, and extract the folder_id from that list first? The later. The folderID is the folder <entry>'s resource id. That node is found in every entry (e.g. <gd:resourceId>folder:12345</gd:resourceId>) > > > Thanks, > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---