Dude, thank you! I didn't see that. You're my hero :) It's all working
now ...
On Jun 19, 2:16 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hi Rogier,
>
> It looks like the problem is occurring at the line where you call
> setUser():
>
> $gdataCal->setUser('[EMAIL PROTECTED]');
>
> What setUser() actually does is identify what calendar you are
> modifying. The unique key in the magic cookie URI then permits you to
> edit that calendar. This is why it works fine for your primary
> calendar but not when you try to change a calendar you have created.
> If you look at the private xml feed URI for your other calendar it
> should look something like:
>
> http://www.google.com/calendar/feeds/<somebigstring>%40group.calendar.google.com/private-keygoeshere/basic
>
> If you compare it to the URI for your primary calendar you will notice
> that in place of "[EMAIL PROTECTED]" you now have this
> "<somebigstring>@group.calendar.google.com" name. This is because
> calendars you create can change ownership or be managed by multiple
> users, so it doesn't make sense to atomically associate the calendar
> with one particular user. Because of this though, you have to change
> your code slightly to read:
>
> $gdataCal->setUser('<somebigstring>@group.calendar.google.com')
>
> This will let you view that particular calendar. To keep the
> abstraction made by your function call I added a new parameter to pass
> in the "user" which is then passed to setUser().
>
> I hope this clears things up for you.
>
> Cheers,
> -Jeff
>
> On Jun 16, 7:54 am, Rogier <[EMAIL PROTECTED]> wrote:
>
> > Hi, I've got an gmail account with two calendars. My first calendar
> > can be accessed through PHP by using the ZEND framework. I'm using the
> > private XML url with the unique key in it. (/private-blablablablabal)
>
> > When I try to use my second calendar's key, the zend framework drops
> > an error. Why is that? Off course, I've entered the correct and
> > corresponding key that belongs to my (second) calendar I want to
> > access through a PHP script.
>
> > Have a look at the script by clicking on the following
> > URL:http://nijmegen.lommers.org/intranet/gdata/gdata.phps
>
> > Anyone know why the ZEND framework does not accept the XML of my
> > second calendar? When I try to access the URL manually, I get a normal
> > and valid XML file.
>
> > Help, please help!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---