Here is an example of how I am using it. I don't know if it is best way of doing it but it works.
------------------------------------------------------------------------------------------ $who = $gdataCal->newWho(); $who->email = $guest_email; $who->rel = 'http://schemas.google.com/g/2005#event.attendee'; $who->valueString = $guest_email; // I don't know if this is the name, email address or what... but it is probably important. $who->attendeeStatus = $gdataCal->newAttendeeStatus('http:// schemas.google.com/g/2005#event.accepted'); $event->who = array($who); ------------------------------------------------------------------------------------------ On Sep 23, 3:37 pm, igorhmm <[email protected]> wrote: > Hello everyone, > > There are any way to add a guest using the PHP API? I can't found any > example or documentation about that. > > Here is my code: > > ------------------------------------------------------------------------------------------ > > $gdataCal = new Zend_Gdata_Calendar($client); > $newEvent = $gdataCal->newEventEntry(); > > $newEvent->title = $gdataCal->newTitle($title); > $newEvent->where = array($gdataCal->newWhere($where)); > $newEvent->content = $gdataCal->newContent("$desc"); > > $when = $gdataCal->newWhen(); > $when->startTime = "{$startDate}T{$startTime}:00.000{$tzOffset}:00"; > $when->endTime = "{$endDate}T{$endTime}:00.000{$tzOffset}:00"; > $newEvent->when = array($when); > > $createdEvent = $gdataCal->insertEvent($newEvent); > > ------------------------------------------------------------------------------------------ > > Thanks for any 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 -~----------~----~----~----~------~----~------~--~---
