On Mon, Feb 2, 2009 at 8:14 AM, [email protected] <[email protected]> wrote: > > Basically, the above question can be put as follows: > When a create an account and use the following code: > CalendarService service = new CalendarService > ("[email protected]"); > service.setUserCredentials("[email protected]", > "pass"); > > And then i try to fetch the events i get the following exception > > "An exception has occured while finding events from > Googlecom.google.gdata.util.ServiceForbiddenException: Forbidden > You must be a calendar user to use private feeds." > > Is there any API to make a user a calendar user programmatically? > > Thanks a lot, > Faisal
If you have a Google Apps premier edition account (http://www.google.com/apps/intl/en/business/editions.html), you can use the Provisioning API to create new calendar users under your domain: http://code.google.com/apis/apps/gdata_provisioning_api_v2.0_reference.html Other than that, there is no way to do it. -- 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 -~----------~----~----~----~------~----~------~--~---
