Hi,
I tried to add more than one reminder on an event by proceding like
this, but in the end, my event is created without any reminder.
With only one remember it works.
$createdEvent = $gdataCal->insertEvent( $newEvent );
$when = $createdEvent->when[0];
$remindersList = array();
$method = array( 'sms', 'email' );
foreach( $method as $methodName )
{
$reminder = $gdataCal->newReminder();
// Set the event to M-1
$reminder->setMinutes( 1 );
$reminder->setMethod( $methodName );
$remindersList[] = $reminder;
unset( $reminder );
}
$when->reminders = $remindersList;
Any idea ?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---