does this fix it by any chance?

function getEvent($client, $eventId)
{
    $editURL = $eventId;
    $WithoutId = substr ($editURL, 0, strrpos ($editURL, '/')+1);
    //echo "<br />editURL: $editURL";
    //echo "<br />: $WithoutId";
    $eventId = str_replace($WithoutId, '', $editURL);
    //echo "<br />id: $eventId<br>";
    $gdataCal = new Zend_Gdata_Calendar($client);
    $query = $gdataCal->newEventQuery();
    $query->setUser('default');
    $query->setVisibility('private');
    $query->setProjection('full');
    $query->setEvent($eventId);
//echo $eventId;
    try {
        $eventEntry = $gdataCal->getCalendarEventEntry($query);
        return $eventEntry;
    } catch (Zend_Gdata_App_Exception $e) {
        var_dump($e);
        return null;
}
}

i had a similar problem i could add but couldnt update events cause that 
function was appending the eventId twice

Bim

-- 
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://code.google.com/apis/calendar/community/forum.html

Reply via email to