Hi Eric,
Thanks for reply.
I did a lot of debugging and got the following working code
uri = "/feeds/download/documents/Export?
exportFormat=html&xoauth_requestor_id=user
%40domaincom&docID=ddq7mc3q_81fbk8r7yt"
feed = gdata.docs.service.DocsService.GetMedia(uri)
content = feed.file_handle.body.buf
The 'content' is in HTML format and can be displayed in a HTML page
without any formatting.
On Apr 27, 10:52 pm, Eric Bidelman <[email protected]> wrote:
> Hi VJ,
> I'm not sure about this issue. What do line 472, column 2 correspond to?
>
> BTW, I recently uploaded a patch to make 2 legged oauth support
> easier. It's in review as we
> speak:http://code.google.com/p/gdata-python-client/issues/detail?id=237
>
> Eric
>
> On Mon, Apr 27, 2009 at 6:49 AM, VJ <[email protected]> wrote:
>
> > Hi all,
>
> > I have a folder "Reports"; and i documents in this folder.
> > I am trying to achieve following using Python
>
> > 1. List all the documents stored in "Reports" folder.
> > ----> I achieved it.
>
> > 2. View a document in readonly format on my screen.
> > ----> I tried following steps......
> > *Each Document Entry gives me an id in the format
>
> >http://docs.google.com/feeds/folders/private/full/folder%3Afolder_id/...
> > * I extracted the document_id from it
> > *created a url in following format
> > uri = "/feeds/download/documents/Export?
> > exportFormat=html&xoauth_requestor_id=user
> > %40domaincom&docID=ddq7mc3q_81fbk8r7yt"
>
> > * Now when I try to fetch the feed using
> > gdata.docs.service.DocsService.Get(uri)
> > I get following exception "SyntaxError: mismatched tag:
> > line 473, column 2"
>
> > Do anyone have any idea about this problem?
> > Or please tell me any other method to achieve this.
>
> > Thanx
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---