Thanks Trevor,

I'm not a cluey with this API stuff, could you please give me a
specific example? I post my events to gCal like this:

try {
        $event = $gcal->newEventEntry();
        $event->title = $gcal->newTitle($title);
        $when = $gcal->newWhen();
        $when->startTime = $start;
        $when->endTime = $end; //If NOT all day, send end event information.
        $event->when = array($when);
        $gcal->insertEvent($event);
} catch (Zend_Gdata_App_Exception $e) {
        echo "Error: " . $e->getResponse();
}
echo 'Event successfully added!<br/>';

Thanks Mate!

Brad


On Mar 12, 12:22 pm, Trevor Johns <[email protected]> wrote:
> On Wed, Mar 11, 2009 at 1:24 PM, ogierepier <[email protected]> wrote:
> > Hi, i'm using the PHP library and I can't find anywhere in the
> > documentation how to create events for other calendars than the
> > default calendar. Is this possible and if yes, how do you do this?
>
> The insertEvent() method accepts a URL parameter:
>
> http://framework.zend.com/apidoc/core/Zend_Gdata/Calendar/Zend_Gdata_...
>
> Specifically: void insertEvent ( $event, [ $uri = null])
>
> You can get this URL by first retrieving the Calendar metafeed:
>
>    http://code.google.com/apis/calendar/docs/1.0/developers_guide_php.ht...
>
> ...once you have the metafeed, you'll want to extract the alternate
> link from the calendar's entry, using this method:
>
>    http://framework.zend.com/apidoc/core/Zend_Gdata/App/Zend_Gdata_App_F...
>
> ...finally, extract the href value from that link and pass it to 
> insertEvent().
>
> --
> Trevor Johns
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to