Hi stingraytest,

You can get the edit URL from an event entry.  If you get an event
feed like this:

  $user = '[EMAIL PROTECTED]';
  $pass = 'myPassword';
  $service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME; // predefined
service name for calendar
  $client = Zend_Gdata_ClientLogin::getHttpClient($user,$pass,
$service);
  $gdataCal = new Zend_Gdata_Calendar($client);
  $eventFeed = $gdataCal->getCalendarEventFeed();

Then each element is an event entry so you can get the edit links like
this:

  foreach ($eventFeed as $event) {
    echo $event->getLink('edit')->href;

Hope that helps,
Lane

On Aug 15, 7:08 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> hello,
> in the Google Calendar Data API Developer's Guide for PHP, i am trying
> to understand where
> to retrieve the edit URL from.
>
> the following explains in the deleting events section:
>
> // Retrieve the edit URL for an event. When using this method, this
> URL
> // should already be available somewhere locally, such as in a
> database.
> $eventEditUrl = $event->getLink('edit')->href;
>
> // Once the edit URL is available, it can be used to issue the delete
> request.
> // $gdataCal is an instance of Zend_Gdata_Calendar, which inherits
> from Zend_Gdata_App.
> $gdataCal->delete($eventEditUrl);
>
> thank you,
> james


--~--~---------~--~----~------------~-------~--~----~
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