Retrieve a Link from event

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Retrieve a Link from event

pedrogcosta
Hello!

I'm using Zend Gdata to access to a public calendar but I have a question:

Now I retieving only the name of the event (using $event->title->text) but I want to retrieve a link to the event (similar to: http://www.google.com/calendar/event?eid=cXBvZGE3YWw5MHU3ZThpY3ZkNzF2dHVtc2tfMjAxMTAyMTlUMTcwMDAwWiBsdWlzZnJhbmNpc2NvbWFycXVlc0Bt&ctz=Europe/Lisbon).

How can I do this?
Reply | Threaded
Open this post in threaded view
|

Re: Retrieve a Link from event

pedrogcosta
For those who have the same question, I've found the solution:

This is done using:

$event->getLink('alternate')->getHref()

Solved!