Hi Marc,
Could you post your question in the Google Calendar Data API Forum?
You will be more likely to get help from there as this Forum is
dedicated to Google Base.
You can find this forum here:
http://groups.google.com/group/google-calendar-help-dataapi
Thanks
Nicolas
On Nov 25, 9:38 am, Marc MENDEZ <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm developing a PHP page which creates Event in a google calendar.
>
> I have several "simple" users who share their calendar with a "super"
> user (let's call him "manager")
>
> Thru the google web site, when the manager created an event for a
> simple user, he just selects on which calendar he wants to work. The
> event is added to the user's calendar.
>
> With PHP, if I connect to the service with the manager's login. I say
> he's the author and I add the simple user in the "who" property,
> something like that :
>
> $event = $service->newEventEntry();
> $event->title = $service->newTitle($title);
> $when = $service->newWhen();
> $when->startTime = $start;
> $when->endTime = $end;
> $event->when = array($when);
> $author = $service->newAuthor($service->newName("Marc MENDEZ"),
> $service->newEmail(AGENDA_MANAGER_USER));
> $who = $service->newWho("[EMAIL PROTECTED]",null,"Marc
> MENDEZ");
> $event->who = array($who);
> $event->author = array($author);
> $where = $service->newWhere("a","b","","");
> $event->where = array($where);
> $status = $service->newEventStatus("http://schemas.google.com/g/
> 2005#event.confirmed");
> $event->eventStatus = $status;
> $service->insertEvent($event);
>
> But i don't have the same result as when I do it on the web site :
>
> A "main" event is created (owned by the manager) and a kind of
> "invitation" is added to the simple user's calendar. I don't want it !
>
> How can I have the same result ?
>
> Thanks for your help
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Base 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-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---