So $calendar->getLink()->getHref(
) returns a full url like:
http://www.google.com/calendar/feeds/1bofflqv7fipee5cip4qmdgp40%40group.calendar.google.com
Plugging that into newEventQuery, e.g.:
$query = $service->newEventQuery('http://www.google.com/calendar/feeds/1bofflqv7fipee5cip4qmdgp40%40group.calendar.google.com');
creates a problem, because newEventQuery wants to include /default after it. $query->setUser(''); of course does not work, as any null user is set to "default" automatically.
I can of course strip "http://www.google.com/calendar/feeds/" out from the output of getHref() and feed that to setUser() but that seems a bit silly.
Is that how it's done, or is there something I'm missing?
-Josh
http://www.google.com/calendar/feeds/1bofflqv7fipee5cip4qmdgp40%40group.calendar.google.com
Plugging that into newEventQuery, e.g.:
$query = $service->newEventQuery('http://www.google.com/calendar/feeds/1bofflqv7fipee5cip4qmdgp40%40group.calendar.google.com');
creates a problem, because newEventQuery wants to include /default after it. $query->setUser(''); of course does not work, as any null user is set to "default" automatically.
I can of course strip "http://www.google.com/calendar/feeds/" out from the output of getHref() and feed that to setUser() but that seems a bit silly.
Is that how it's done, or is there something I'm missing?
-Josh
没有评论:
发表评论