示例#1
0
        public DisqusApi(IDisqusRequestProcessor requestProcessor, DisqusAuthMethod authMethod, string key)
        {
            if (string.IsNullOrWhiteSpace(key))
            {
                throw new ArgumentNullException(nameof(key));
            }

            Applications   = new DisqusApplicationsApi(requestProcessor, authMethod, key);
            Blacklists     = new DisqusBlacklistsApi(requestProcessor, authMethod, key);
            Category       = new DisqusCategoryApi(requestProcessor, authMethod, key);
            Exports        = new DisqusExportsApi(requestProcessor, authMethod, key);
            ForumCategory  = new DisqusForumCategoriesApi(requestProcessor, authMethod, key);
            Forums         = new DisqusForumsApi(requestProcessor, authMethod, key);
            Imports        = new DisqusImportsApi(requestProcessor, authMethod, key);
            Organizations  = new DisqusOrganizationsApi(requestProcessor, authMethod, key);
            Posts          = new DisqusPostsApi(requestProcessor, authMethod, key);
            Threads        = new DisqusThreadsApi(requestProcessor, authMethod, key);
            Trends         = new DisqusTrendsApi(requestProcessor, authMethod, key);
            TrustedDomains = new DisqusTrustedDomainsApi(requestProcessor, authMethod, key);
            Users          = new DisqusUsersApi(requestProcessor, authMethod, key);
            Whitelists     = new DisqusWhitelistsApi(requestProcessor, authMethod, key);
        }
 public DisqusOrganizationsApi(IDisqusRequestProcessor requestProcessor, DisqusAuthMethod authMethod, string key)
     : base(requestProcessor, authMethod, key)
 {
 }
示例#3
0
 public DisqusApi(DisqusAuthMethod authMethod, string key) : this(
         new DisqusRequestProcessor(new DisqusRestClient()), authMethod, key)
 {
 }
 public DisqusTrustedDomainsApi(IDisqusRequestProcessor requestProcessor, DisqusAuthMethod authMethod,
                                string key) : base(requestProcessor, authMethod, key)
 {
 }