【发布时间】:2014-09-25 22:35:13
【问题描述】:
我已经有一个 $event->attendees 和一些现有的与会者。 我想在此活动中添加新的 EventAttendee,但看起来我的代码破坏了旧的与会者列表。
我试试
$attendeesx= $event->getAttendees();
$attendees = array_push($attendeesx,$newattendee);
$event->attendees = $attendees;
$service->events->update(MyCalendar, $event->getID(), $event);
不工作。无论如何,我想添加,而不是用新列表替换旧列表。 有什么线索吗?
什么是additionalGuest?它是做什么用的?
【问题讨论】:
标签: google-calendar-api google-api-php-client