Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have been fighting this for awhile and I finally got it to work. This is not wrapped nicely, but this is the answer I was looking for</p> <p>First you have to get the calendar ID. If you go into your calendar and click on the down arrow icon next to the name you will see an option for Calendar Settings. Select that menu item. Near the bottom you will see Calendar Address. It will take a moment to find the Calendar ID and it will look something like this </p> <p>(Calendar ID: o4g3921hdiaq5p8kdat2l4vgis@group.calendar.google.com) </p> <p>You want o4g39j1hdihq4p8kdat2l4vgis@group.calendar.google.com </p> <p>Down the road I will want to get this in php but for now I can hard code. So I set a variable to this <code> </p> <pre><code>$calendar_user = 'o4g39j1hdihq4p8kdat2l4vgis@group.calendar.google.com'; </code></pre> <p></code></p> <p>When retrieving events you will setUser like this</p> <pre><code>$gdataCal = new Zend_Gdata_Calendar($client); $query = $gdataCal-&gt;newEventQuery(); $query-&gt;setUser($calendar_user); </code></pre> <p>But when you are adding event you can't do that you have to use the $calendar_user at the point where you insert the event.</p> <p>So here is the complete code</p> <pre><code>$calendar_user = 'o4g39j1hdihq4p8kdat2l4vgis@group.calendar.google.com'; $user = 'myemail@yahoo.com'; $pass = 'mygooglecalendarpassword'; $service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME; // predefined service name for calendar $client = Zend_Gdata_ClientLogin::getHttpClient($user,$pass,$service); $gc = new Zend_Gdata_Calendar($client); $newEntry = $gc-&gt;newEventEntry(); $newEntry-&gt;title = $gc-&gt;newTitle("mytitle"); $newEntry-&gt;where = array($gc-&gt;newWhere("meeting place")); $newEntry-&gt;content = $gc-&gt;newContent("Meeting description"); $newEntry-&gt;content-&gt;type = 'text'; $when = $gc-&gt;newWhen(); $when-&gt;startTime = "{'2012-06-28'}T{'10:00'}:00.000{'-08'}:00"; $when-&gt;endTime = "{'2012-06-28'}T{'11:00'}:00.000{'-08'}:00"; $newEntry-&gt;when = array($when); $createdEvent = $gc-&gt;insertEvent($newEntry, "http://www.google.com/calendar/feeds/".$calendar_user."/private/full"); </code></pre> <p>Now I hope that is helpful. I tell you it took me way too long to figure this out, but I am not the smartest guy in the world.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload