Hi Kulvinder,
> In the CalendarURI instead of "default", i used [EMAIL PROTECTED] i am not
> getting the <gd:Visibility> in the Calendar Feed.
Are you using an authenticated version of the feed? Visibility information
is not available in public feeds. If I retrieve an authenticated
'/private/' version of the feed, I still get the visibility information even
when using the e-mail address rather than 'default.'
> Can you tell me when to use a "default" feed ?
Using 'default' will retrieve the primary calendar of the authenticated
user. This is most useful when you are using AuthSub authentication and do
not know the e-mail address of the user who is authenticated. It can also
be used in ClientLogin scenarios where you don't want to pass the e-mail
address around to different methods.
> I also wanted to know is there a way to delete all the Events of a
Calendar (non-primary) in one go?
Unfortunately, this functionality is not currently available via the API.
You would need to page through each of the events and send a DELETE to the
edit url-- or use the appropriate client library calls to implement this.
Alternatively, you could delete and re-create the calendar through the UI,
but the calendar address would change with this scenario.
Happy coding,
-Ryan
On 2/17/07, Kulvinder Singh <[EMAIL PROTECTED]> wrote:
>
> Hi Ryan,
>
> In the CalendarURI instead of "default", i used [EMAIL PROTECTED] 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<http://answers.yahoo.com/;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx>.
> > 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
-~----------~----~----~----~------~----~------~--~---