Hi Ryan,
   
  In the CalendarURI instead of "default", i used [EMAIL PROTECTED] and i am 
not getting the <gd:Visibility> in the Calendar Feed.
   
  Can you tell me when to use a "default" feed ?

  I also wanted to know is there a way to delete all the Events of a Calendar 
(non-primary) in one go?
   
  Thanks

"Ryan Boyd (Google)" <[EMAIL PROTECTED]> wrote:
  Hi Kulvinder,

I'm able to see the visibility using the following code:

   public void GetDefaultFeed(String userName, String passWord, String 
calendarURI)
    {
        CalendarService service = new CalendarService("CalendarSampleApp"); 
        service.setUserCredentials(userName, passWord);

        EventQuery query = new EventQuery();
        query.Uri = new Uri(calendarURI);
        EventFeed calFeed = service.Query(query);
        foreach (EventEntry entry in calFeed.Entries)
        {
            Console.WriteLine(entry.Title.Text);
            Console.WriteLine("\tVisibility: " + entry.EventVisibility.Value);
            foreach (When when in entry.Times )
            {
                Console.WriteLine("\tStart: " + when.StartTime);
                Console.WriteLine("\tEnd: " + when.EndTime);
                
                
            } 
        }
        Console.ReadLine();
    }

    static void Main()
    {
        Rbtest rb = new Rbtest();
        rb.GetDefaultFeed(username, password, " 
http://www.google.com/calendar/feeds/default/private/full";);
    }

Does this work for you?

Cheers,

-Ryan


  On 2/16/07, Kulvinder <[EMAIL PROTECTED]> wrote:  
Hi,

I did try using Client Login but it was of no help. Can you please
tell me how can i get the <gd:Visibility> value in the Calendar Feed.

On Jan 19, 10:40 am, "Ryan Boyd (Google)" < [EMAIL PROTECTED]>
wrote:
> Hello Kulvinder,
>
> I'm not sure of the reason for this, but thevisibilityelement does
> not appear to be present in private magic cookie feeds.  I will 
> certainly investigate why this is, but, in the meantime, you should be
> able to use one of the authenticated mechanisms (such as ClientLogin or
> AuthSub) to get thevisibilityvalues.
>
> Best of luck. 
>
> Cheers,
>
> -Ryan
>
> On Jan 18, 8:24 pm, Kulvinder Singh <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi Ryan, 
>
> >   I am using the "full" projection.
>
> >   My Private XML address is :
>
> >   /private-/full">http://www.google.com/calendar/feeds/ 
> > <PrivateCalendarName>/private-<MagicCookie>/full
>
> >   Please tell me what i ammissing.
>
> >   Please help.
>
> >   Regards
> >   Kulvinder Singh
>
> > "Ryan Boyd (Google)" <[EMAIL PROTECTED]> wrote:
>
> > Hello Kulvinder,
>
> > For your list of events, what projection are you using? The full 
> > projection should include thevisibilityof the event.
>
> >http://code.google.com/apis/calendar/reference.html#Projection 
>
> > Cheers,
>
> > -Ryan
>
> > On Jan 18, 2:17 am, Kulvinder Singh wrote:
>
> > > Hi,
>
> > > Whenever i am getting the Event Feed from a Google calendar through its 
> > > Private XML feed, i am able to get all the Events in my calendar Private 
> > > as well as made public but i am not able to get the XML node for any of 
> > > the events and thus EventEntry.Visibilityis always coming to be null.
>
> > > Can anyone help ?
>
> > > Regards
> > > Kulvinder Singh
>
> > > --------------------------------- 
> > > Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call 
> > > rates.---------------------------------
> > No need to miss a message. Get email on-the-go
> > with Yahoo! Mail for Mobile. Get started.- Hide quoted text - 
>
> - Show quoted text -






 
---------------------------------
Any questions?  Get answers on any topic at Yahoo! Answers. Try it now.
--~--~---------~--~----~------------~-------~--~----~
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