title: How do I insert into non-default Google Calendar using Zend / PHP
body: <p>I'm trying to insert a new event into Google Calendar, which I can do fine by the following:</p>
  
  <pre><code>$sname = Zend_Gdata_Calendar::AUTH_SERVICE_NAME; // predefined service name for calendar
  $client = Zend_Gdata_ClientLogin::getHttpClient($userName,$password,$sname);
  $service = new Zend_Gdata_Calendar($client);
  
  $event = $service-&gt;newEventEntry();
  $event-&gt;title = $service-&gt;newTitle($name);
  $event-&gt;when = array($when);
  $newEvent = $service-&gt;insertEvent($event);
  </code></pre>
  
  <p>However, this will only insert into the default calendar.  I am trying to use the URI argument of insertEvent to get where I need to go:</p>
  
  <pre><code>$uri = "http://www.google.com/calendar/feeds/default/something@somethingelse.com/private/full";
  $newEvent = $service-&gt;insertEvent($event, $uri);
  </code></pre>
  
  <p>This hasn't worked.  I've tried encoding and decoding the URI, which gives me different error messages, but I just can't get this to work.  I've been Googling solutions for hours now with no luck.  Can anyone help?</p>
  
  <p>Thanks.
  - Dave</p>