Technically /compose is not part of the public API, and the Google Calendar folks may change it at any time. [plus I don't think it accepts authsub]
There is a little documented way of doing QuickAdd through GData. The XML looks like this: <atom:entry xmlns:atom='http://www.w3.org/2005/Atom'> <atom:category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/g/2005#event'></atom:category> <atom:content type='text'>meeting at university of virginia tomorrow 8am</atom:content> <gCal:quickadd xmlns:gCal='http://schemas.google.com/gCal/2005' value='true'></gCal:quickadd> </atom:entry> On Mar 9, 11:08 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi people, > I'm working with Calendar API and Zend_Gdata. I'm using AuthSub and > all works :) > Now I'm trying to make Quick Add feature, I think the better way is > parse with "http://www.google.com/calendar/compose?ctext=" and then > make the trivial post. > > The compose url needs login, just like the feeds but I couldn't > request that using AuthSub, somebody has any idea? > > Thanks a lot. > > // > libraryhttp://torrez.us/archives/2006/04/18/433/http://framework.zend.com/manual/en/zend.gdata.htmlhttp://www.google.com/support/calendar/bin/answer.py?answer=36604&top... > > // Feed code - that's works > $client = Zend_Gdata_AuthSub::getHttpClient( $token ); > $gdataCal = new Zend_Gdata_Calendar( $client ); > $gdataCal->setVisibility('private'); > $gdataCal->setProjection('full'); > $eventFeed = $gdataCal->getCalendarFeed(); > > // Compose url test - doesn't work, need login > $client = Zend_Gdata_AuthSub::getHttpClient( $token ); > $gdataCal = new Zend_Gdata_Calendar( $client ); > $gdataCal->setVisibility('private'); > $gdataCal->setProjection('full'); > $http = $gdataCal->getHttpClient(); > $http->setUri( "http://www.google.com/calendar/compose?ctext=Do%20I > %20have%20a%20doctor's%20appointment%20tomorrow%20at%206pm?" ); > $response = $http->request(); > echo $response->getBody(); --~--~---------~--~----~------------~-------~--~----~ 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://groups.google.com/group/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
