Google Calendar Event

Instantiate Event
$event = eden('google')->calendar($_SESSION['token'])->event();
Event Methods
Method Arguments Returns Description
$event->addAttendee($attendee);
  1. string|array
Eden_Google_Calendar_Event sets the attendees for event
$event->create($summary, $calendarId = self::PRIMARY);
  1. string*
  2. - Title of the calendar
  3. string*
  4. - Calendar identifier.
array Create event
$event->delete($eventId, $calendarId = self::PRIMARY);
  1. string
  2. - Event identifier
  3. string
  4. - Calendar identifier
array Delete Calendar specific events
$event->getEvent($calendarId = self::PRIMARY);
  1. string
  2. - Calendar identifier
array Return all event fo calendar
$event->getInstances($eventId, $calendarId = self::PRIMARY);
  1. string
  2. - Event identifier
  3. string
  4. - Calendar identifier
array Return instances of specific event
$event->getSpecificEvent($eventId, $calendarId = self::PRIMARY);
  1. string
  2. - Event identifier
  3. string
  4. - Calendar identifier
array Return specific event
$event->importEvent($start, $end, $importId, $calendarId = self::PRIMARY);
  1. string|integer
  2. - The (exclusive) start time of the event
  3. string|integer
  4. - The (exclusive) end time of the event
  5. string
  6. - Event ID in the iCalendar format.
  7. string
  8. - Calendar identifier
array Import an event of a calendar
$event->moveEvent($destination, $eventId, $calendarId = self::PRIMARY);
  1. string
  2. - Calendar identifier of the target calendar where the event is to be moved to.
  3. string
  4. - Event identifier
  5. string
  6. - Calendar identifier
array Moves an event to another calendar
$event->patch($eventId, $calendarId = self::PRIMARY);
  1. string
  2. - Event identifier
  3. string
  4. - Calendar identifier
array Updates an entry on the user's calendar list. This method supports patch semantics.
$event->quickCreate($text, $calendarId = self::PRIMARY);
  1. string
  2. - The text describing the event to be created.
  3. string
  4. - Calendar identifier
array Creates an event based on a simple text string
$event->setColorId($colorId);
  1. integer
Eden_Google_Calendar_Event Set event color id
$event->setCreator($creator);
  1. string
  2. - ID referring to an entry in the "event" section of the colors definition
Eden_Google_Calendar_Event Set the color of the event.
$event->setDescription($description);
  1. string
Eden_Google_Calendar_Event Set event description
$event->setEnd($end);
  1. string|int
Eden_Google_Calendar_Event sets the end for event
$event->setKind($kind);
  1. string
Eden_Google_Calendar_Event Set event kind
$event->setLocation($location);
  1. string
Eden_Google_Calendar_Event Set the location for event
$event->setOrganizer($organizer);
  1. string
Eden_Google_Calendar_Event Set event organizer
$event->setReminders($reminders);
  1. string
Eden_Google_Calendar_Event Set event reminders
$event->setStart($start);
  1. string|int
Eden_Google_Calendar_Event Set start for event
$event->setStatus($status);
  1. string
Eden_Google_Calendar_Event Set event status
$event->update($eventId, $calendarId = self::PRIMARY);
  1. string
  2. - Event identifier
  3. string
  4. - Calendar identifier
array Update Calendar specific events

© 2012 Openovate Labs. All rights reserved.