public virtual List <CategoryItem> UpdateCategories(List <CategoryItem> items, string configId = null)
        {
            string url      = RepositoryClient.BuildUrl(ApiKeys, "categories", configId);
            var    data     = JsonConvert.SerializeObject(items);
            var    response = RepositoryClient.Put <List <CategoryItem> >(url, data);

            return(response);
        }
        public virtual List <TaxonomyItem> UpdateTaxonomy(List <TaxonomyItem> items, string configId = null)
        {
            var url      = RepositoryClient.BuildUrl(ApiKeys, "taxonomy", configId);
            var data     = JsonConvert.SerializeObject(items);
            var response = RepositoryClient.Put <List <TaxonomyItem> >(url, data);

            return(response);
        }
Exemple #3
0
        public virtual List <SentimentPhraseItem> UpdateSentimentPhrases(List <SentimentPhraseItem> items, string configId = null)
        {
            var url      = RepositoryClient.BuildUrl(ApiKeys, "phrases", configId);
            var data     = JsonConvert.SerializeObject(items);
            var response = RepositoryClient.Put <List <SentimentPhraseItem> >(url, data);

            return(response);
        }