<author> is an array because there can be more than a single author:
$entry->author[0]->name

Eric

On Dec 6, 5:55 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I am using the following code to access (just learning)
> -------------------------------------------------------------------------------------------------------------------------
> function retrieveAllDocuments($gdClient, $html)
> {
>   if ($html) {echo "<h2>Your documents</h2>\n";}
>   $feed = $gdClient->getDocumentListFeed();
>   printDocumentsFeed($feed, $html);
>
> }
>
> function printDocumentsFeed($feed, $html)
> {
>   if ($html) {echo "<ul>\n";}
>
>   // Iterate over the document entries in the feed and display each
> document's
>   // title.
>   foreach ($feed->entries as $entry) {
>     if ($html) {
>         // Find the URL of the HTML view of the document.
>         $alternateLink = '';
>         foreach ($entry->link as $link) {
>             if ($link->getRel() === 'alternate') {
>                 $alternateLink = $link->getHref();
>             }
>         }
>         // Make the title link to the document on docs.google.com.
>         echo "<li><a href=\"$alternateLink\">\n";
>     }
>     echo "$entry->title ($entry->author)\n";//<----------------HERE
>     if ($html) {echo "</a></li>\n";}
>   }
>   if ($html) {echo "</ul>\n";}}
>
> ------------------------------------------------------------------------------------------------------------------------------------------
> I see how $entry->title works but I need to get the authors name as
> well and $entry->author does not.  Can anyone point me in the right
> direction?
--~--~---------~--~----~------------~-------~--~----~
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