To be clear, you can only determine folder hierarchy from the Documents List
API, not the Spreadsheets API.

That said, if the parent link is not contained in the resource entry from
the Documents List API, I tend to think that the resource is just not in the
folder.  Can you confirm, this is the first report I've heard of this.

-Vic



On Mon, Jun 27, 2011 at 5:28 PM, Scott Malinowski <[email protected]>wrote:

> How can I determine in which folder a spreadsheet is located? I am using
> JavaScript and Ajax. There is nothing in the Spreadsheets API documentation
> about this. The Docs API (
> https://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#GettingDocsAndFiles)
> states there should be a link in the result feed as such:
>
> <!-- This document is in one collection, detailed here. -->
>   <link rel="http://schemas.google.com/docs/2007#parent"; 
> type="application/atom+xml"
>
>       
> href="https://docs.google.com/feeds/default/private/full/folder%3A12345"; 
> title="ACollectionName"/
>
> This link element is not actually in the returned data, though. I tried
> using both the Spreadsheets and the Docs queries to no avail.
>
> Spreadsheets query I tried:
> https://spreadsheets.google.com/feeds/spreadsheets/private/full
>
> Docs query I tried:
> https://docs.google.com/feeds/default/private/full
>
>

Reply via email to