Hi,
To create an event with reminder -
$minutes = 45;
$method = 'alert';
$reminder = $gdataCal->newReminder();
$reminder->setMinutes($minutes);
$reminder->setMethod($method);
$when->reminders = array($reminder);
You can add these lines just before the insertEvent().
Hope it helps,
Austin
On Sat, Jul 12, 2008 at 3:50 AM, Janez Novak <[EMAIL PROTECTED]> wrote:
>
> Hei
>
> I have one question - how can I create reminder with new events which
> I create over Google Calendar API?
>
> in this few lines I create new event:
>
> $event = $gcal->newEventEntry();
> $event->title = $gcal->newTitle($title);
> $when = $gcal->newWhen();
> $when->startTime = $start;
> $when->endTime = $end;
> $event->when = array($when);
>
> $gcal->insertEvent($event);
>
> but which lines I have to add here for set reminder?
>
> Thx for help
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---