Hello,

Now I'm getting "An ACL entry scope may not be changed and must match
the one specified by the URI."  What does this mean?

- Hide quoted text -

On Wed, Mar 5, 2008 at 10:09 AM, Austin (Google)
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> The code to make secondary calendar public just need to replace the [USERID]
> with the calendar ID -
>
>     var ACL_URL =
> "http://www.google.com/calendar/feeds/[USERID]/acl/full/user%3A[USERID]";;
>
>     var entry = new google.gdata.AclEntry();
>     var role = new google.gdata.AclRole();
>     //role.setValue(google.gdata.AclRole.VALUE_READER);
>     role.setValue('http://schemas.google.com/gCal/2005#read');
>     entry.setRole(role);
>
>     var scope = new google.gdata.AclScope();
>     scope.setType(google.gdata.AclScope.TYPE_DEFAULT);
>     entry.setScope(scope);
>
>     calendarService.updateEntry(ACL_URL, entry, function() {alert('ACL is
> updated');}, handleError, google.gdata.AclEntry);
>
> You do need to set your scope url during authentication to be
> "http://www.google.com/calendar/feeds/";
>
> Austin
>
> On Wed, Mar 5, 2008 at 12:41 AM, Terence Kim <[EMAIL PROTECTED]> wrote:
> > I want to know how to make secondary calendars public. After much
> > browsing of the discussion group, I figured changing the above
> > ACL_URL's /default/ portion to /<userid>/ would do the trick.
> > Javascript now complains "Authentication required." Any ideas how to
> > treat this?
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
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