Hi All,

I wanted to follow up on this thread because this strange behavior was
difficult to diagnose, but the situation that led to the problem seems
like it could crop up in a number of applications.

The initial symptom was that the default feed and the user feed were
returning different values, when in fact they should be identical.
This turned out to be due to the fact that the user had both a
personal and hosted Google account and the feed were returning
information form both sources.

It looks like the application was attempting to use token
authentication (AuthSub) with their Google Apps account.  However,
Google Apps doesn't support AuthSub authentication so the token
returned was actually for a personal account that happened to exist.
Switching to password authentication (ClientLogin) fixed the problem
because Google Apps does support ClientLogin and the auth token for
the intended account was returned.

Thanks to Wai for helping uncover this gotcha.  I hope other
developers find this summary useful.  I think it will help to raise
the priority of enabling AuthSub for Google Apps, a much requested
feature in several Google data groups.

Cheers,
Lane

On May 15, 1:48 pm, Wai <[EMAIL PROTECTED]> wrote:
> Hi Lane
>
> Thanks for quick response.
>
> I'm using the c# code and secure tokens :-
> EventQuery query = new EventQuery();
> query.Uri = new Uri("http://www.google.com/calendar/feeds/default/
> private/full");
> query.NumberToRetrieve = 9999;
> with query.StartTime and query.EndTime set to get around a months
> worth of data.
> m_service.Query(query);
>
> For a particular user we get around 40 entries for that month calling
> the api withdefaultbut
> the user has said that there are more entries in her GoogleCalendar.
> For that month, she reported 2 missing entries which was visible in
> GoogleCalendar
> but not returned calling the api withdefault.
>
> I'm not sure if this is relevant but the user mentioned that
> she created the appointments in GoogleCalendar
> which were not retrieved from thedefaultfeed.
> However we can see other appointments
> for that same day retrieved from thedefaultfeed.
>
> Let me know if you still need the requests and responses.
> Thanks again
>
> Wai
>
> On May 15, 6:53 pm, "Lane LiaBraaten (Google)"
>
> <[EMAIL PROTECTED]> wrote:
> > Hi Wai,
>
> > You are correct in your assumption that there is no difference between
> > using 'default' and the user's Google ID, but something must be up
> > since that's not what you're seeing.  I have several questions that
> > could probably be most easily answered if you can post the actual
> > requests and responses.  What query parameters, if any, are you using
> > in your request?  How many events are in user'scalendarversus how
> > many show up in each feed?
>
> > Thanks,
> > Lane
>
> > On May 15, 5:54 am, Wai <[EMAIL PROTECTED]> wrote:
>
> > > Hi everyone
>
> > > Is there a difference between using the 'default' keyword and
> > > the user's full google id to get a user'sdefaultcalendar?
>
> > > e.g :-http://www.google.com/calendar/feeds/default/private/full
> > > http://www.google.com/calendar/feeds/[EMAIL PROTECTED]/private/full
>
> > > We had always assumed thatdefaultwould get a user'sdefault
> > >calendar.
>
> > > However a user has reported that they weren't get all your
> > > appointments usingdefault.
> > > (The user has only onecalendar.)
> > > After substitutingdefaultwith the user's Google full login id they
> > > could see all the their appointments? How can this happen?
>
> > > Thanks in advance
> > > Wai


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