/// <summary> /// Constructs an AppsService with the specified Authentication Token /// for accessing provisioning feeds on the specified domain. /// </summary> /// <param name="domain">the domain to access</param> /// <param name="authenticationToken">the administrator's Authentication Token</param> public AppsService(string domain, string authenticationToken) { this.domain = domain; this.applicationName = "apps-" + domain; nicknameService = new NicknameService(applicationName); nicknameService.SetAuthenticationToken(authenticationToken); userAccountService = new UserService(applicationName); userAccountService.SetAuthenticationToken(authenticationToken); groupsService = new GroupsService(domain, applicationName); groupsService.SetAuthenticationToken(authenticationToken); }
/// <summary> /// Constructs an AppsService with the specified credentials /// for accessing provisioning feeds on the specified domain. /// </summary> /// <param name="domain">the domain to access</param> /// <param name="adminEmailAddress">the administrator's email address</param> /// <param name="adminPassword">the administrator's password</param> public AppsService(string domain, string adminEmailAddress, string adminPassword) { this.domain = domain; this.applicationName = "apps-" + domain; nicknameService = new NicknameService(applicationName); nicknameService.setUserCredentials(adminEmailAddress, adminPassword); userAccountService = new UserService(applicationName); userAccountService.setUserCredentials(adminEmailAddress, adminPassword); groupsService = new GroupsService(domain, applicationName); groupsService.setUserCredentials(adminEmailAddress, adminPassword); }
/// <summary> /// Constructs an AppsService with the specified credentials /// for accessing provisioning feeds on the specified domain. /// </summary> /// <param name="domain">the domain to access</param> /// <param name="adminEmailAddress">the administrator's email address</param> /// <param name="adminPassword">the administrator's password</param> public AppsService(string domain, string adminEmailAddress, string adminPassword) { this.domain = domain; this.applicationName = "apps-" + domain; emailListRecipientService = new EmailListRecipientService(applicationName); emailListRecipientService.setUserCredentials(adminEmailAddress, adminPassword); ((GDataRequestFactory)emailListRecipientService.RequestFactory).KeepAlive = false; emailListService = new EmailListService(applicationName); emailListService.setUserCredentials(adminEmailAddress, adminPassword); ((GDataRequestFactory)emailListService.RequestFactory).KeepAlive = false; nicknameService = new NicknameService(applicationName); nicknameService.setUserCredentials(adminEmailAddress, adminPassword); ((GDataRequestFactory)nicknameService.RequestFactory).KeepAlive = false; userAccountService = new UserService(applicationName); userAccountService.setUserCredentials(adminEmailAddress, adminPassword); ((GDataRequestFactory)userAccountService.RequestFactory).KeepAlive = false; }