// Path: client/src/main/java/com/shopzilla/api/client/model/request/CategorySearchRequest.java
// public class CategorySearchRequest extends AbstractSearchRequest {
//     
//     
//     private String keyword;
//     private Long categoryId;
//     private Boolean ancestors;
//     private Integer results;
//     private EnumSortOrder sortOrder;
//     private String attFilter;
// 
//     public Boolean getAncestors() {
//         return ancestors;
//     }
// 
//     public void setAncestors(Boolean ancestors) {
//         this.ancestors = ancestors;
//     }
// 
//     public String getAttFilter() {
//         return attFilter;
//     }
// 
//     public void setAttFilter(String attFilter) {
//         this.attFilter = attFilter;
//     }
// 
//     public Long getCategoryId() {
//         return categoryId;
//     }
// 
//     public void setCategoryId(Long categoryId) {
//         this.categoryId = categoryId;
//     }
// 
//     public String getKeyword() {
//         return keyword;
//     }
// 
//     public void setKeyword(String keyword) {
//         this.keyword = keyword;
//     }
// 
//     public Integer getResults() {
//         return results;
//     }
// 
//     public void setResults(Integer results) {
//         this.results = results;
//     }
// 
//     public EnumSortOrder getSortOrder() {
//         return sortOrder;
//     }
// 
//     public void setSortOrder(EnumSortOrder sortOrder) {
//         this.sortOrder = sortOrder;
//     }
//     
// }


import org.springframework.beans.factory.annotation.Required;
import org.springframework.web.client.RestOperations;
import com.shopzilla.api.client.model.request.CategorySearchRequest;
import com.shopzilla.services.catalog.TaxonomyResponse;
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.shopzilla.api.client;


/**
 *
 * @author sachar
 */
public class TaxonomyClient {
    
    private RestOperations restTemplate;
    private UrlProvider urlProvider;
    
    
    /**
     * Wrapper for retrieveProductResponseList(), made for parsing sets of Products from searches
     * for a particular keyword.
     * 
     * @param apiKey
     * @param publisherId
     * @param searchKeyword
     * @param numResults
     * 
     * @return TaxonomyResponse
     */
    public TaxonomyResponse doCategorySearch(String apiKey, String publisherId, String searchKeyword,
            Integer numResults) {
      try {
// Path: client/src/main/java/com/shopzilla/api/client/model/request/CategorySearchRequest.java
// public class CategorySearchRequest extends AbstractSearchRequest {
//     
//     
//     private String keyword;
//     private Long categoryId;
//     private Boolean ancestors;
//     private Integer results;
//     private EnumSortOrder sortOrder;
//     private String attFilter;
// 
//     public Boolean getAncestors() {
//         return ancestors;
//     }
// 
//     public void setAncestors(Boolean ancestors) {
//         this.ancestors = ancestors;
//     }
// 
//     public String getAttFilter() {
//         return attFilter;
//     }
// 
//     public void setAttFilter(String attFilter) {
//         this.attFilter = attFilter;
//     }
// 
//     public Long getCategoryId() {
//         return categoryId;
//     }
// 
//     public void setCategoryId(Long categoryId) {
//         this.categoryId = categoryId;
//     }
// 
//     public String getKeyword() {
//         return keyword;
//     }
// 
//     public void setKeyword(String keyword) {
//         this.keyword = keyword;
//     }
// 
//     public Integer getResults() {
//         return results;
//     }
// 
//     public void setResults(Integer results) {
//         this.results = results;
//     }
// 
//     public EnumSortOrder getSortOrder() {
//         return sortOrder;
//     }
// 
//     public void setSortOrder(EnumSortOrder sortOrder) {
//         this.sortOrder = sortOrder;
//     }
//     
// }


// Path: client/src/main/java/com/shopzilla/api/client/TaxonomyClient.java
import org.springframework.beans.factory.annotation.Required;
import org.springframework.web.client.RestOperations;
import com.shopzilla.api.client.model.request.CategorySearchRequest;
import com.shopzilla.services.catalog.TaxonomyResponse;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.shopzilla.api.client;


/**
 *
 * @author sachar
 */
public class TaxonomyClient {
    
    private RestOperations restTemplate;
    private UrlProvider urlProvider;
    
    
    /**
     * Wrapper for retrieveProductResponseList(), made for parsing sets of Products from searches
     * for a particular keyword.
     * 
     * @param apiKey
     * @param publisherId
     * @param searchKeyword
     * @param numResults
     * 
     * @return TaxonomyResponse
     */
    public TaxonomyResponse doCategorySearch(String apiKey, String publisherId, String searchKeyword,
            Integer numResults) {
      try {
        CategorySearchRequest request = new CategorySearchRequest();