Exemple #1
0
        public RelatedProducts GetRelatedProducts(RelatedProductsRequest relatedProductsRequest)
        {
            HttpWebRequest  request         = CatalogRequestBuilder.ConstructRelatedProductsRequest(apiKey, relatedProductsRequest);
            RelatedProducts relatedProducts = ProcessBodylessRequest(request).ToObject <RelatedProducts>();

            return(relatedProducts);
        }
Exemple #2
0
        public ProductRecommendations GetProductRecommendations(ProductRecommendationsRequest productRecommendationsRequest)
        {
            HttpWebRequest         request = CatalogRequestBuilder.ConstructProductRecommendationsRequest(apiKey, productRecommendationsRequest);
            ProductRecommendations productRecommendations = ProcessBodylessRequest(request).ToObject <ProductRecommendations>();

            return(productRecommendations);
        }
Exemple #3
0
        public ProductOffers GetProductOffers(ProductOffersRequest productOffersRequest)
        {
            HttpWebRequest request       = CatalogRequestBuilder.ConstructProductOffersRequest(apiKey, productOffersRequest);
            ProductOffers  productOffers = ProcessBodylessRequest(request).ToObject <ProductOffers>();

            return(productOffers);
        }
Exemple #4
0
        public SellerList GetSellerList(SellerListRequest sellerListRequest)
        {
            HttpWebRequest request    = CatalogRequestBuilder.ConstructSellerListRequest(apiKey, sellerListRequest);
            SellerList     sellerList = ProcessBodylessRequest(request).ToObject <SellerList>();

            return(sellerList);
        }
Exemple #5
0
        public ProductList GetProducts(ProductsRequest productsRequest)
        {
            HttpWebRequest request     = CatalogRequestBuilder.ConstructProductsRequest(apiKey, productsRequest);
            ProductList    productList = ProcessBodylessRequest(request).ToObject <ProductList>();

            return(productList);
        }
Exemple #6
0
        public ListResults Browse(ListResultsRequest listResultsRequest)
        {
            HttpWebRequest request     = CatalogRequestBuilder.ConstructListRequest(apiKey, listResultsRequest);
            ListResults    listResults = ProcessBodylessRequest(request).ToObject <ListResults>();

            return(listResults);
        }
Exemple #7
0
        public SearchResults Search(SearchResultsRequest searchResultsRequest)
        {
            HttpWebRequest request       = CatalogRequestBuilder.ConstructSearchRequest(apiKey, searchResultsRequest);
            SearchResults  searchResults = ProcessBodylessRequest(request).ToObject <SearchResults>();

            return(searchResults);
        }
        public Command BuildCatalogCommand()
        {
            var command = new Command("catalog");
            var builder = new CatalogRequestBuilder(PathParameters, RequestAdapter);

            command.AddCommand(builder.BuildGetCommand());
            return(command);
        }