Not sure how this relates to my question though. I'm not trying to retrieve calendar events; just pointing a user to a particular calendar. I am not familiar with php either, so it is very hard for me to read the function. Given a CalendarEntry object, how do you get the 'invite' url for it? (This is the url that you get when somebody has shared a calendar with you, not the ones that are reminders for particular events). Perhaps you misunderstood what I meant by 'invite' urls? -Patricia
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Bim Sent: Thursday, April 07, 2011 7:03 AM To: Google Calendar Data API Subject: [Calendar API] Re: FW: how to generate these calendar urls programmatically? ( TRYING AGAIN) Hi Patricia, I'm not from google but the php api should allow you to handle that, if all the calendars are on the same account you can loop through each one. the setup guide is here http://code.google.com/apis/calendar/data/1.0/developers_guide_php.html note that this function is missing from the guide: function getEvent($client, $eventId) { $editURL = $eventId; $WithoutId = substr ($editURL, 0, strrpos ($editURL, '/')+1); $eventId = str_replace($WithoutId, '', $editURL); $gdataCal = new Zend_Gdata_Calendar($client); $query = $gdataCal->newEventQuery(); $query->setUser('default'); $query->setVisibility('private'); $query->setProjection('full'); $query->setEvent($eventId); try { $eventEntry = $gdataCal->getCalendarEventEntry($query); return $eventEntry; } catch (Zend_Gdata_App_Exception $e) { var_dump($e); return null; } } and also a typo in the setReminder function $when->reminder = array($reminder); should be $when->reminders = array($reminder); Bim On Apr 6, 10:20 pm, "Patricia Goldweic" <[email protected]> wrote: > Could somebody from Google please help answer this question I posted > back on 3/23? Thanks in advance, -Patricia > > > > > > > > -----Original Message----- > From: Patricia Goldweic [mailto:[email protected]] > Sent: Wednesday, March 23, 2011 8:56 AM > To: [email protected] > Subject: how to generate these calendar urls programmatically? > > Hi, > Is there a way to programmatically generate the calendar urls sent by > Google Apps (in an email notification) when a calendar has been shared with a user? > I'm talking about urls of the > form:https://www.google.com/calendar/hosted/mydomain.com/render?cid=my > domain_<som > e id> > > I've been generating these urls 'manually' within my program, but it > would be much better to be able to use the apis. These urls are then > used within HTML links to ensure that when individuals click on them, > they have access to their own calendars + the one specified in the > url. An important part of this is that the urls are created *after* > the calendar has been shared with a group containing these individuals, so they in theory have 'rightful' > access to the calendar in question, although they may not have the url > to get to them (or, may not have read their inbox, notifying them of > their access and containing one of these links). The HTML links within > my application, are then supposed to 'remedy' this problem. > > Please let me know whether there's any way to generate these urls in a > 'supported' way. If there isn't , then, what other shape of urls > *can* be generated in a supported way that would serve the same purpose as the above? > Please advise. Thanks, > -Patricia > > Patricia Goldweic > [email protected] -- 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 -- 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
