Disregard - figured it out - I had AclRole.ACL_CALENDAR_ROOT instead
of AclRole.ACL_CALENDAR_READ. Hitting tab completion too fast, I
suppose...works like a charm now!

Thanks,
Matt

On Oct 31, 7:57 am, Matt Burton <[EMAIL PROTECTED]> wrote:
> I'm trying to automate making acalendarpublicusing the .NET client
> - here's a snippet of the code I'm using:
>
> var aclEntry = new AclEntry
> {
>     Scope = new AclScope
>     {
>         Type = AclScope.SCOPE_DEFAULT
>     },
>     Role = AclRole.ACL_CALENDAR_ROOT
>
> };
>
> this.calendarService.Insert(GetFullAclFeedUri(calendarId), aclEntry);
>
> My feed URL is:http://www.google.com/calendar/feeds/<CalendarID>/acl/full
>
> The response from the server:
> WebException: The remote server returned an error: (400) Bad Request.
> GDataRequestException: Execution of request failed
>
> What am I doing wrong here? If I get this working, is this correct
> approach? The documentation isn't very clear in this area - what I'm
> looking to achieve is the equivalent of marking "Makethiscalendarpublic" in 
> the UI - am I on the right track?
>
> Thanks in advance,
> Matt

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