On Wed, Feb 25, 2009 at 8:02 AM, KevinWe <[email protected]> wrote:
> Hi,
>
> Via google calendar it's possible to add a new user to an existing
> account.
> I try to do this from a java application with the folowing code:
>
> calendarLogin.makeConnection(user, paswoord);
>
>            AclEntry entry = new AclEntry();
>            entry.setScope(new AclScope(AclScope.Type.USER,
> userToAdd));
>            entry.setRole(CalendarAclRole.READ);
>
>            System.out.println(calendarURL);
>            URL aclUrl = new URL("http://www.google.com/calendar/
> feeds/" + calendarURL + "/acl/full");
>
>            AclEntry insertedEntry = calendarLogin.myService.insert
> (aclUrl, entry);
>
> CalendarUrl is something like this: gvmmbu0et9ek76stca5ach1u4k
> %40group.calendar.google.com
>
>
> But when I use this function, I keep getting the following error:
>
> Exception in removeUserFromAccessList
> com.google.gdata.util.ResourceNotFoundException: Not Found
> <HTML>
> <HEAD>
> <TITLE>Not Found</TITLE>
> </HEAD>
> <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
> <H1>Not Found</H1>
> <H2>Error 404</H2>
> </BODY>
> </HTML>
>
> Somebody who has a solution?
>

Kevin,
Two things I recommend trying:

1. Rather than trying to construct the ACL feed URL yourself, use the
one that's provided by the server inside of a contact entry.
2. Can you double-check that userToAdd is correct? ;)

If neither of those make a difference, can you post the following information:

- An HTML transcript showing your ACL add operation:
http://code.google.com/apis/gdata/articles/debugging_client_libs.html
- The email address of the account you're using to perform these operations.
- The address of the group calendar whose ACL you're trying to modify.
- The email address of the user you're trying to insert.

If you have a problem posting this information publicly, you can email
it directly to me at [email protected].

-- 
Trevor Johns

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