Hi,
I wanted to create a Calendar and be able to recognize it later. I
found the ExtendedProperty feature and tried to add one to my calendar
as explained in the developer guide (http://code.google.com/apis/
calendar/developers_guide_dotnet.html#ExtendedProps).
I add it with the following code :
CalendarEntry calendar = new CalendarEntry();
calendar.Title.Text = "Eve Skill Monitor";
calendar.Summary.Text = "blablabla";
calendar.Hidden = false;
ExtendedProperty property = new ExtendedProperty();
property.Name = "http://gismork.free.fr/schemas/
2008#mycal.calendarid";
property.Value = "EveSkillMonitor";
calendar.ExtensionElements.Add(property);
calendar.Update();
Uri postUri = new Uri("http://www.google.com/calendar/
feeds/default/owncalendars/full");
_skillCalendar = (CalendarEntry)_service.Insert(postUri,
calendar);
Later when I query the server to get my calendar, it doesn't contains
the ExtendedProperty.
I use the following code to query :
CalendarQuery query = new CalendarQuery();
query.Uri = new Uri("http://www.google.com/calendar/feeds/
default/owncalendars/full");
query.UseSSL = true;
CalendarFeed resultFeed = _service.Query(query);
foreach (CalendarEntry entry in resultFeed.Entries)
{
foreach (object var in entry.ExtensionElements)
{
ExtendedProperty p = var as ExtendedProperty;
if (p != null)
{
Console.WriteLine(p.Name);
}
}
Console.WriteLine(entry.Title.Text + "\n");
}
I used GDataLoggingRequestFactory to capture HTTP traffic. Here is the
log files :
Create request :http://gismork.free.fr/temp/create_request.log
Get request : http://gismork.free.fr/temp/get_request.log
The property seems to sent correctly according to the HTTP capture.
I spent several hours on this issue and I don't find what's wrong. Can
you tell me if I missed something ?
Best regards
Cédric
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---