title: Google Calendar EventId issues (PHP Api)
body: <p>I've been working with the PHP api for google Calendar, and have been getting quite frustrated.</p>
  
  <p>I downloaded the zend package with all the libraries from google's page, and have been working off the provided code to make sure it can meet my requirements.</p>
  
  <p>The issue I'm running into involves getting an event back from the system.  The provided code includes a demo with function getEvent($clientId, $eventId), which based on the documentation and reading the code, i would expect to return an event that is in my calendar that matches the provided Id.</p>
  
  <p>So in my tests, I create a new event, and then I try to retrieve it.  However, whenever I retrieve the event, Zend_data_Gdata_App_HttpException is:</p>
  
  <pre><code>function processPageLoad()
  {
      global $_SESSION, $_GET;
      if (!isset($_SESSION['sessionToken']) &amp;&amp; !isset($_GET['token'])) {
          requestUserLogin('Please login to your Google Account.');
      } else {
          $client = getAuthSubHttpClient();
          $id = createEvent ($client, 'Tennis with Beth',
           'Meet for a quick lesson', 'On the courts',
          '2010-10-20', '10:00',
          '2010-10-20', '11:00', '-08');
          $newEvent = getEvent($client, $id);
      }
  }
  </code></pre>
  
  <p>the code for createEvent( ) is :</p>
  
  <pre><code>function createEvent ($client, $title = 'Tennis with Beth',
  $desc='Meet for a quick lesson', $where = 'On the courts',
  $startDate = '2008-01-20', $startTime = '10:00',
  $endDate = '2008-01-20', $endTime = '11:00', $tzOffset = '-08')
  {
      $gc = new Zend_Gdata_Calendar($client);
      $newEntry = $gc-&gt;newEventEntry();
      $newEntry-&gt;title = $gc-&gt;newTitle(trim($title));
      $newEntry-&gt;where  = array($gc-&gt;newWhere($where));
  
      $newEntry-&gt;content = $gc-&gt;newContent($desc);
      $newEntry-&gt;content-&gt;type = 'text';
  
      $when = $gc-&gt;newWhen();
      $when-&gt;startTime = "{$startDate}T{$startTime}:00.000{$tzOffset}:00";
      $when-&gt;endTime = "{$endDate}T{$endTime}:00.000{$tzOffset}:00";
      $newEntry-&gt;when = array($when);
  
      $createdEntry = $gc-&gt;insertEvent($newEntry);
      return $createdEntry-&gt;id-&gt;text;
  }
  </code></pre>
  
  <p>And finally the code for getEvent() is:</p>
  
  <pre><code>function getEvent($client, $eventId)
  {
      $gdataCal = new Zend_Gdata_Calendar($client);
      $query = $gdataCal-&gt;newEventQuery();
      $query-&gt;setUser('default');
      $query-&gt;setVisibility('private');
      $query-&gt;setProjection('full');
      $query-&gt;setEvent($eventId);
  
      try {
          $eventEntry = $gdataCal-&gt;getCalendarEventEntry($query);
          return $eventEntry;
      } catch (Zend_Gdata_App_Exception $e) {
          var_dump($e);
          return null;
  
  }
  </code></pre>
  
  <p>}</p>