I have a problem with subscribing to other user's calendar within the
same domain.  The code implementation runs fine with no exceptions.
However, when I verify with the Google Calendar for that account that
was suppose to subscribe to another users account, I dont see any
subscribed calendars.

Any ideas?  I am using version 1.4.0.2

a) GoogleServiceAccount svc - this is the authenticated master user
and password that can subscribe to any user's calendar in the domain

b) string userEmail is the calendar id. for example [email protected]

Code
=========================
using Google.GData.Calendar;
using Google.GData.Client;

public void SubscribeToUserPrimary(GoogleServiceAccount svc, string
userEmail) {

  public static readonly string URL_CAL_FEEDS_ALL_FULL = "http://
www.google.com/calendar/feeds/default/allcalendars/full";

  try
  {
                CalendarQuery calQuery = new CalendarQuery
(Common.URL_CAL_FEEDS_ALL_FULL);
                CalendarFeed calFeed = svc.CalService.Query(calQuery);

                CalendarEntry calEntry = new CalendarEntry();
                calEntry.Id = new AtomId(userCalendarId);
                calEntry.Selected = false;
                calEntry.Hidden = false;

                svc.CalService.Insert(calFeed, calEntry);
  }
  catch (GDataRequestException e)
  {
     //test
  }
=========================

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