Hi,

Just as an update, the original URI should work, in my request the
python client library URLencoded the ampersands. So if you use this
URI, it will work:

http://docs.google.com/feeds/download/documents/RawDocContents?action...<YOUR_DOCUMENT_ID>&revision=_latest&justBody=false

- Jochen

On Sep 23, 10:48 am, "Jochen Hartmann (Google)"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> It looks like something is wrong with the current way that the
> RawDocContent URI is displayed in the feed. Instead of what you get
> from the content.src attribute right now will need to be modified
> slightly. So what you get now is:
>
> http://docs.google.com/feeds/download/documents/RawDocContents?action...<YOUR_DOCUMENT_ID>&amp%3Brevision=_latest&amp%3BjustBody=false
>
> You will need to change this in your code to:
>
> http://docs.google.com/RawDocContents?action=fetch&docID=<YOUR_DOCUMENT_ID>&editMode=false&justBody=false&revision=_latest
>
> You can then obtain the contents by making a regular GET request,
> passing in your authorization header and setting the converter to
> 'str', indicating that you just need a plain text string returned (as
> opposed to an object created from XML):
>
> doc_source = d.Get("http://docs.google.com/RawDocContents?
> action=fetch&justBody=false&revision=_latest&editMode=false&docID=<YOUR_DOCUMENT_ID>",
> {'Authorization': 'GoogleLogin auth=<YOUR_CLIENT_LOGIN_TOKEN>'},
> converter=str)
>
> To track this defect, I have entered it on our issue tracker:
>
> http://code.google.com/p/gdata-issues/issues/detail?id=794
>
> Please star it to be notified when it has been fixed.
>
> Thanks,
> - Jochen
>
> On Sep 20, 10:32 am, Daniele Favara <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
>
> > i'm trying to use :
>
> > class DocsSample(object):
> >     def __init__(self, email, password):
> >         self.gd_client = gdata.docs.service.DocsService()
> >         self.gd_client.email = email
> >         self.gd_client.password = password
> >         self.gd_client.source = 'Document List Python Sample'
> >         self.gd_client.ProgrammaticLogin()
> >         query =
> > gdata.docs.service.DocumentQuery(categories=['document'])
> >         self.feed = self.gd_client.Query(query.ToUri())
>
> > docs_sample = DocsSample(emal, password)
> > print docs_sample.feed.entry[0].content.src
>
> >http://docs.google.com/a/test.com/feeds/download/documents/RawDocCont...<xxxx>
>
> > How can i print out the html content ?
>
> > Any idea ?
>
> > 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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to