Lightly modified from the Zend demo code:
function outputCalendarList($client)
{
$gdataCal = new Zend_Gdata_Calendar($client);
$calFeed = $gdataCal->getCalendarListFeed();
echo "<h1>" . $calFeed->title->text . "</h1>\n";
echo "<ul>\n";
foreach ($calFeed as $calendar) {
echo "\t<li>" . $calendar->title->text . " --- color => " .
$calendar->color->value . "</li>\n";
}
echo "</ul>\n";
}
$calendar->color->value is the important bit.
This is defined in /Gdata/Calendar/Extension/Color.php.
Ray
On Tue, Jan 20, 2009 at 1:07 AM, [email protected] <[email protected]> wrote:
>
> I've spent hours looking at the documentation and code for the Zend
> API, but cannot figure out how to retrieve the color value of my
> calendars. I'm pretty sure this is possible as a I saw a function that
> can retrieve the color value. Unfortunately I don't know how to access
> the class.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" 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-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---