Exemplo n.º 1
0
        /// <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;

            emailListRecipientService = new EmailListRecipientService(applicationName);
            emailListRecipientService.SetAuthenticationToken(authenticationToken);

            emailListService = new EmailListService(applicationName);
            emailListService.SetAuthenticationToken(authenticationToken);

            nicknameService = new NicknameService(applicationName);
            nicknameService.SetAuthenticationToken(authenticationToken);

            userAccountService = new UserService(applicationName);
            userAccountService.SetAuthenticationToken(authenticationToken);

            groupsService = new GroupsService(domain, applicationName);
            groupsService.SetAuthenticationToken(authenticationToken);
        }
Exemplo n.º 2
0
        /// <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);

            emailListService = new EmailListService(applicationName);
            emailListService.setUserCredentials(adminEmailAddress, adminPassword);

            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);
        }
Exemplo n.º 3
0
        /// <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;

            emailListRecipientService = new EmailListRecipientService(applicationName);
            emailListRecipientService.SetAuthenticationToken(authenticationToken);

            emailListService = new EmailListService(applicationName);
            emailListService.SetAuthenticationToken(authenticationToken);

            nicknameService = new NicknameService(applicationName);
            nicknameService.SetAuthenticationToken(authenticationToken);

            userAccountService = new UserService(applicationName);
            userAccountService.SetAuthenticationToken(authenticationToken);

            groupsService = new GroupsService(domain, applicationName);
            groupsService.SetAuthenticationToken(authenticationToken);
        }
Exemplo n.º 4
0
        /// <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);

            emailListService = new EmailListService(applicationName);
            emailListService.setUserCredentials(adminEmailAddress, adminPassword);

            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);
        }
Exemplo n.º 5
0
        /// <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;
        }