public virtual List <ServiceStatus> GetStatus()
        {
            string url      = RepositoryClient.BuildUrl(ApiKeys, "status");
            var    response = RepositoryClient.Get <List <ServiceStatus> >(url);

            return(response);
        }
예제 #2
0
        public virtual DocumentAnalysis GetDocument(string id, string configId = null)
        {
            string encodedId = HttpUtility.UrlEncode(id);
            string url       = RepositoryClient.BuildUrl(ApiKeys, $"document/{encodedId}", configId);
            var    response  = RepositoryClient.Get <DocumentAnalysis>(url);

            return(response);
        }
예제 #3
0
        public virtual CollectionAnalysis GetCollection(string id)
        {
            string encodedId = HttpUtility.UrlEncode(id);
            string url       = RepositoryClient.BuildUrl(ApiKeys, $"collection/{encodedId}");
            var    response  = RepositoryClient.Get <CollectionAnalysis>(url);

            return(response);
        }
        public virtual List <ConfigurationDefinition> ListConfigurations()
        {
            string url      = RepositoryClient.BuildUrl(ApiKeys, "configurations");
            var    response = RepositoryClient.Get <List <ConfigurationDefinition> >(url);

            return(response);
        }
        public virtual List <TaxonomyItem> GetTaxonomies(string configId = null)
        {
            var url      = RepositoryClient.BuildUrl(ApiKeys, "taxonomy", configId);
            var response = RepositoryClient.Get <List <TaxonomyItem> >(url);

            return(response);
        }
예제 #6
0
        public virtual List <EntityItem> GetEntities(string configId = null)
        {
            var url      = RepositoryClient.BuildUrl(ApiKeys, "entities", configId);
            var response = RepositoryClient.Get <List <EntityItem> >(url);

            return(response);
        }
예제 #7
0
        public virtual List <BlacklistItem> ListBlacklist(string configId = null)
        {
            string url      = RepositoryClient.BuildUrl(ApiKeys, "blacklist", configId);
            var    response = RepositoryClient.Get <List <BlacklistItem> >(url);

            return(response);
        }
        public virtual List <CategoryItem> ListCategories(string configId = null)
        {
            string url      = RepositoryClient.BuildUrl(ApiKeys, "categories", configId);
            var    response = RepositoryClient.Get <List <CategoryItem> >(url);

            return(response);
        }
예제 #9
0
        public virtual List <SentimentPhraseItem> GetSentimentPhrases(string configId = null)
        {
            var url      = RepositoryClient.BuildUrl(ApiKeys, "phrases", configId);
            var response = RepositoryClient.Get <List <SentimentPhraseItem> >(url);

            return(response);
        }