So I've been spending a few days since launch reviewing the operational, product and marketing metrics for share2me. We have a 10 minute morning call @ 10 minutes before 10am every day where I update the team on basic metrics such as # of registrations and hot sources of traffic. So I started to think what a good idea it would be to put that data in a calendar that the team could subscribe to... so I don't have to consume any of the precious few 10-b4-10 minutes. After a quick search I found a fabulous (if not a tad on the undocumented) library provided by the Zend team.
Here's the basic code to post to a calendar.
$email = 'YOU@gmail.com';
$passwd = 'PASSWD';
$feedUrl = 'http://www.google.com/calendar/feeds/BLAH';
$client = Zend_Gdata_ClientLogin::getHttpClient($email, $passwd, 'cl');
$cal = new Zend_Gdata_Calendar($client);
$timestamp = time();
$end=date('Y-m-d', ($timestamp + (60 * 60 * 24)));
$xmlString = <<<XML
<title type='text'>Title for my event</title>
<content type='text'>This is where all the content goes.</content>
<gd:when startTime='$start' endTime='$end'/>
$xml = new SimpleXMLElement($xmlString);