1
我使用Zend谷歌API库检索从公共日历事件的列表。我能够成功地检索title
,when
和content
,但where
是一个空数组。我在过去3小时内从Google,Zend或其他地方找到的任何文档都很糟糕,并且没有列出可能的值。我能找到关于事件位置的唯一文档是如何在创建事件时对其进行设置。谷歌日历API事件饲料不放弃“其中”
如何访问的位置?
<?php
foreach ($eventFeed as $event) :
?>
<li>
<div class="event_title">
<?php echo $event->title->text;?>
</div>
<div class="event_time">
<?php echo date('h:ia', strtotime($event->when[0]->startTime));?>
</div>
<div class="event_location">
<?php echo $event->where?>
</div>
<div class="event_description">
<?php echo $event->content->text?>
</div>
</li>
<?php
endforeach;
?>