/// <summary> /// This type is deprecated as the call is no longer available. /// </summary> /// /// <param name="ProductSearchList"> /// Specifies the keywords or attributes that make up the product query, with /// pagination instructions. ProductSearch is a required input. To search for /// multiple different products at the same time (i.e., to perform a batch /// search), pass in multiple ProductSearch properties. /// </param> /// public ProductSearchResultTypeCollection GetProductSearchResults(ProductSearchTypeCollection ProductSearchList) { this.ProductSearchList = ProductSearchList; Execute(); return ApiResponse.ProductSearchResult; }
/// <summary> /// This type is deprecated as the call is no longer available. /// </summary> /// /// <param name="ProductSearchList"> /// Specifies the ID of a product in the family to be retrieved, /// along with pagination and sorting instructions. /// ProductSearch is a required input. /// </param> /// public ProductSearchResultTypeCollection GetProductFamilyMembers(ProductSearchTypeCollection ProductSearchList) { this.ProductSearchList = ProductSearchList; Execute(); return(ApiResponse.ProductSearchResult); }
public void GetProductSearchResults() { this.apiContext.Timeout = 360000; GetProductSearchResultsCall api = new GetProductSearchResultsCall(this.apiContext); ProductSearchType ps = new ProductSearchType(); //ps.AttributeSetID = 1785;// Cell phones ps.MaxChildrenPerFamily = 20; ps.MaxChildrenPerFamilySpecified = true; ps.AvailableItemsOnly = false; ps.AvailableItemsOnlySpecified = true; ps.QueryKeywords = "Nokia"; StringCollection ids = new StringCollection(); ids.Add("1785"); ps.CharacteristicSetIDs = ids; // Pagination PaginationType pt = new PaginationType(); pt.EntriesPerPage = 50; pt.EntriesPerPageSpecified = true; pt.PageNumber = 1; pt.PageNumberSpecified = true; ps.Pagination = pt; ProductSearchTypeCollection pstc = new ProductSearchTypeCollection(); pstc.Add(ps); // Make API call. ProductSearchResultTypeCollection results = api.GetProductSearchResults(pstc); Assert.IsNotNull(results); Assert.IsTrue(results.Count > 0); TestData.ProductSearchResults = results; Assert.IsNotNull(TestData.ProductSearchResults); Assert.IsTrue(TestData.ProductSearchResults.Count > 0); }