hi, I'm the admin of a domain.
I want to create event for a specific user. Here my code, what's wrong ? $email="[email protected]"; $password="*********"; $domain="Domain.com"; $client = Zend_Gdata_ClientLogin::getHttpClient($email, $password,'cl'); $service = new Zend_Gdata_Calendar($client,$domain); /* I create my event */ $event= $service->newEventEntry(); $event->title = $service->newTitle("My Event test"); $event->where = array($service->newWhere("Mountain View, California")); $event->content = $service->newContent(" This is my awesome event. RSVP required."); // Set the date using RFC 3339 format. $startDate = "2009-03-21"; $startTime = "14:00"; $endDate = "2009-03-21"; $endTime = "16:00"; $tzOffset = "-08"; $when = $service->newWhen(); $when->startTime = "{$startDate}T{$startTime}:00.000{$tzOffset}:00"; $when->endTime = "{$endDate}T{$endTime}:00.000{$tzOffset}:00"; $event->when = array($when); // Upload the event to the calendar server // A copy of the event as it is recorded on the server is returned $query = $service->newEventQuery(); $query->user = '[email protected]'; $query->setVisibility('private'); $query->setProjection('full'); $query->setOrderby('starttime'); $query->setStartMin($startDate); $query->setStartMax($endDate); $eventFeed = $service->getCalendarEventFeed($query); $newEvent = $service->insertEvent($event); --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
