public void GetProducts()
        {
            GetProductsCall api = new GetProductsCall(this.apiContext);
            //
            ProductSearchType prodSearchType = new ProductSearchType();
            prodSearchType.ProductID = "556677";
            prodSearchType.AttributeSetID = 123;
            prodSearchType.ProductReferenceID = "44462740";
            //
            ProductSortCodeType productSortCodeType = ProductSortCodeType.PopularityAsc;
            //
            AffiliateTrackingDetailsType affTrackingDetailsType = new AffiliateTrackingDetailsType();
            affTrackingDetailsType.TrackingID = "trackId";
            affTrackingDetailsType.AffiliateUserID = "UserId";
            affTrackingDetailsType.TrackingPartnerCode = "PartnerCode";
            //
            api.Site = SiteCodeType.US;

            try
            {
                CharacteristicsSetProductHistogramType products =
                    api.GetProducts(prodSearchType, productSortCodeType, true, false, true, false, affTrackingDetailsType,true);
            }
            catch(ApiException apie)
            {
                Console.WriteLine("ApiException: " + apie.Message);
            }
            catch(SdkException sdke)
            {
                Assert.Fail("SdkException: " + sdke.Message);
            }
        }
Exemple #2
0
        /// <summary>
        /// Enables the authenticated user to make a bid, a Best Offer, or
        /// a purchase on the item specified by the ItemID input field.
        /// </summary>
        ///
        /// <param name="Offer">
        /// Specifies the type of offer being made. If the item is a
        /// competitive-bidding listing, the offer is a bid. If the item is a
        /// fixed-price listing, then the offer purchases the item. If the item is a
        /// competitive-bidding listing and the offer is of type with an active,
        /// unexercised Buy It Now option, then the offer can either purchase the
        /// item or be a bid. See the schema documentation for OfferType for details
        /// on its properties and their meanings.
        /// </param>
        ///
        /// <param name="ItemID">
        /// Unique item ID that identifies the item listing for which the action is being
        /// submitted.
        ///
        /// If the item was listed with Variations, you must also specify
        /// VariationSpecifics in the request to uniquely identify the
        /// variant being purchased.
        /// </param>
        ///
        /// <param name="BlockOnWarning">
        /// If a warning message exists and BlockOnWarning is true,
        /// the warning message is returned and the bid is blocked. If no warning message
        /// exists and BlockOnWarning is true, the bid is placed. If BlockOnWarning
        /// is false, the bid is placed, regardless of warning.
        /// </param>
        ///
        /// <param name="AffiliateTrackingDetails">
        /// Container for affiliate-related tags, which enable the tracking of user
        /// activity. If you include AffiliateTrackingDetails in your PlaceOffer call, then
        /// it is possible to receive affiliate commissions based on calls made by your
        /// application. (See the <a href=
        /// "http://www.ebaypartnernetwork.com/" target="_blank">eBay Partner Network</a>
        /// for information about commissions.) Please note that affiliate tracking is not
        /// available in the Sandbox environment, and that affiliate tracking is not
        /// available when you make a best offer.
        /// </param>
        ///
        /// <param name="VariationSpecificList">
        /// Name-value pairs that identify a single variation within the
        /// listing identified by ItemID. Required when the seller
        /// listed the item with Item Variations.
        ///
        /// If you want to buy items from multiple variations in the same
        /// listing, use a separate PlaceOffer request for each variation.
        /// For example, if you want to buy 3 red shirts and 2 black shirts
        /// from the same listing, use one PlaceOffer request for the
        /// 3 red shirts, and another PlaceOffer request for the 2
        /// black shirts.
        /// </param>
        ///
        public SellingStatusType PlaceOffer(OfferType Offer, string ItemID, bool BlockOnWarning, AffiliateTrackingDetailsType AffiliateTrackingDetails, NameValueListTypeCollection VariationSpecificList)
        {
            this.Offer                    = Offer;
            this.ItemID                   = ItemID;
            this.BlockOnWarning           = BlockOnWarning;
            this.AffiliateTrackingDetails = AffiliateTrackingDetails;
            this.VariationSpecificList    = VariationSpecificList;

            Execute();
            return(ApiResponse.SellingStatus);
        }
		/// <summary>
		/// Enables the authenticated user to to make a bid, a best offer, or
		/// a purchase on the item specified by the ItemID input field.
		/// </summary>
		/// 
		/// <param name="Offer">
		/// Specifies the type of offer being made. If the item is a
		/// competitive-bidding listing, the offer is a bid. If the item is a
		/// fixed-price listing, then the offer purchases the item. If the item is a
		/// competitive-bidding listing and the offer is of type with an active,
		/// unexercised Buy It Now option, then the offer can either purchase the
		/// item or be a bid. See the schema documentation for OfferType for details
		/// on its properties and their meanings.
		/// </param>
		///
		/// <param name="ItemID">
		/// Unique item ID that identifies the item listing for which the action is being
		/// submitted.
		/// 
		/// If the item was listed with Variations, you must also specify
		/// VariationSpecifics in the request to uniquely identify the
		/// variant being purchased.
		/// </param>
		///
		/// <param name="BlockOnWarning">
		/// If a warning message exists and BlockOnWarning is true,
		/// the warning message is returned and the bid is blocked. If no warning message
		/// exists and BlockOnWarning is true, the bid is placed. If BlockOnWarning
		/// is false, the bid is placed, regardless of warning.
		/// </param>
		///
		/// <param name="AffiliateTrackingDetails">
		/// Container for affiliate-related tags, which enable the tracking of user
		/// activity. If you include AffiliateTrackingDetails in your PlaceOffer call, then
		/// it is possible to receive affiliate commissions based on calls made by your
		/// application. (See the <a href=
		/// "http://www.ebaypartnernetwork.com/" target="_blank">eBay Partner Network</a>
		/// for information about commissions.) Please note that affiliate tracking is not
		/// available in the Sandbox environment, and that affiliate tracking is not
		/// available when you make a best offer.
		/// </param>
		///
		/// <param name="VariationSpecificList">
		/// Name-value pairs that identify a single variation within the
		/// listing identified by ItemID. Required when the seller
		/// listed the item with Item Variations.
		/// 
		/// If you want to buy items from multiple variations in the same
		/// listing, use a separate PlaceOffer request for each variation.
		/// For example, if you want to buy 3 red shirts and 2 black shirts
		/// from the same listing, use one PlaceOffer request for the
		/// 3 red shirts, and another PlaceOffer request for the 2
		/// black shirts.
		/// </param>
		///
		public SellingStatusType PlaceOffer(OfferType Offer, string ItemID, bool BlockOnWarning, AffiliateTrackingDetailsType AffiliateTrackingDetails, NameValueListTypeCollection VariationSpecificList)
		{
			this.Offer = Offer;
			this.ItemID = ItemID;
			this.BlockOnWarning = BlockOnWarning;
			this.AffiliateTrackingDetails = AffiliateTrackingDetails;
			this.VariationSpecificList = VariationSpecificList;

			Execute();
			return ApiResponse.SellingStatus;
		}
Exemple #4
0
        /// <summary>
        /// Retrieves item listings based on keywords you specify. The keywords can
        /// include wildcards.
        /// </summary>
        /// 
        /// <param name="MotorsGermanySearchable">
        /// Limits the results based on each item's eligibility to appear on the
        /// mobile.de site. If false, excludes eligible items from search results. If
        /// true, queries for eligible items only. If not specified, the search
        /// results are not affected. Only applicable for items listed on the eBay
        /// Germany site (site ID 77) in subcategories of mobile.de search-enabled
        /// categories.
        /// </param>
        ///
        /// <param name="Query">
        /// A query that specifies a search string. The search string consists of one or more
        /// keywords to search for in the listing title and/or description.
        /// The words "and" and "or" are treated like any other word. Only use "and",
        /// "or", or "the" if you are searching for listings containing these words.
        /// You can use AND or OR logic by including certain modifiers.
        /// Wildcards (e.g., *) are also supported. Be careful when using spaces before
        /// or after modifiers and wildcards (+, -, or *). See the
        /// eBay Web Services Guide	for a list of valid modifiers and examples.
        /// Query is not applicable in combination with ExternalProductID or ProductID.
        /// </param>
        ///
        /// <param name="CategoryID">
        /// Limits the result set to items in the specified category.
        /// If no category ID is specified, all categories
        /// are searched by default.
        /// 
        /// <span class="tablenote"><b>Note:</b>
        /// CategoryID does not control whether you will see the
        /// item's categories in the response. Set the value of DetailLevel to
        /// ItemReturnCategories to retrieve each item's primary category and
        /// secondary category (if any) in the response.</span>
        /// 
        /// If the specified category ID doesn't match an existing category
        /// for the site, an invalid-category error message is returned.
        /// Here are a few ways to determine valid categories:
        /// - Use the Categories input field to retrieve
        /// matching categories, and then submit the request again with one of
        /// those categories.
        /// - Find items in all categories but set DetailLevel to
        /// ItemReturnCategories, determine the primary (or secondary)
        /// category ID for a similar item in the results, and then
        /// submit the request again with that category ID.
        /// - Use another call like GetCategories or GetSuggestedCategories to
        /// find a valid category ID.
        /// 
        /// You must pass ProductID, Query, ExternalProductID, or CategoryID
        /// in the request. CategoryID can be used in combination with Query.
        /// It is not allowed with ExternalProductID or ProductID.
        /// If you pass CategoryID without Query, it
        /// must specify a leaf category ID. That is, it cannot be a
        /// meta-category ID (e.g., 267 for "Books").
        /// </param>
        ///
        /// <param name="SearchFlagsList">
        /// Secondary search criterion that checks item descriptions for keywords that
        /// match the query, limits the search results to only charity items, limits
        /// the result set to those items with PayPal as a payment method, and/or
        /// provides other criteria to refine the search.
        /// </param>
        ///
        /// <param name="PriceRangeFilter">
        /// Limits the result set to just those items where the price is within the
        /// specified range. The PriceRangeFilterType includes a minimum and a maximum
        /// price.
        /// </param>
        ///
        /// <param name="ProximitySearch">
        /// Limits the result set to just those items whose location is within a
        /// specified distance of a postal code. The ProximitySearchType includes
        /// a maximum distance and a postal code.
        /// </param>
        ///
        /// <param name="ItemTypeFilter">
        /// Filters items based on the ListingType set for the items.
        /// If ItemTypeFilter is not
        /// specified (or if the AllItemTypes value of ItemTypeFilter is specified),
        /// all listing types can be returned unless another relevant filter is
        /// specified.
        /// </param>
        ///
        /// <param name="SearchType">
        /// Limits the listings in the result set based on whether they are in the
        /// Gallery. The choices are items in the Gallery or Gallery and non-Gallery
        /// items.
        /// </param>
        ///
        /// <param name="UserIdFilter">
        /// Limits the the result set to just those items listed by one or more
        /// specified sellers or those items not listed by the one or more specified
        /// sellers.
        /// </param>
        ///
        /// <param name="SearchLocationFilter">
        /// Limits the result set to just those items that meet location criteria:
        /// listed in a specified eBay site, location where the seller has the item,
        /// location from which the user is searching, and/or items listed with a
        /// specified currency.
        /// </param>
        ///
        /// <param name="StoreSearchFilter">
        /// Limits the result set to just those items that meet criteria related to
        /// eBay Stores sellers and eBay Stores. Use this to retrieve items listed in
        /// a particular seller's eBay Store or in all store sellers' eBay Stores.
        /// This filter always causes item description text to be searched with the
        /// string specified in the Query field. That is, StoreSearchFilter
        /// forces the type of search that would have occurred if you had specified
        /// SearchInDescription in the SearchFlags field.
        /// </param>
        ///
        /// <param name="Order">
        /// Specifies the order in which listings are returned in a result set.
        /// Listings may be sorted by end time, start time, and in other ways listed
        /// in the SearchSortOrderCodeType. Controls the way the listings are
        /// organized in the response (not the details to return for each listing).
        /// For most sites, the default sort order is by items ending soonest. Store
        /// Inventory listings are usually returned after other listing types,
        /// regardless of the sort order.
        /// </param>
        ///
        /// <param name="Pagination">
        /// Controls the pagination of the result set. Child elements specify the
        /// maximum number of item listings to return per call and which page of data
        /// to return. Controls the way the listings are organized in the response
        /// (not the details to return for each listing).
        /// </param>
        ///
        /// <param name="SearchRequest">
        /// A query consisting of a set of attributes (Item Specifics). Use this kind
        /// of query to search against the Item Specifics in listings (e.g., to search
        /// for a particular shoe size). If the query includes multiple attributes,
        /// the search engine will apply "AND" logic to the query and narrow the
        /// results. Use GetProductFinder to determine the list of valid attributes
        /// and how many are permitted for the specified characteristic set. Retrieves
        /// items along with any buying guide details that are associated with the
        /// specified product finder. Applicable in combination with the Query
        /// argument. Cannot be used in combination with ProductID or
        /// ExternalProductID.
        /// 
        /// If you are searching for tickets, see TicketFinder instead.
        /// </param>
        ///
        /// <param name="ProductID">
        /// An exclusive query to retrieve items that were listed with the specified
        /// eBay catalog product. You must pass ProductID, Query, ExternalProductID,
        /// or CategoryID in the request. If you use ProductID, do not use Query,
        /// ExternalProductID, or CategoryID.
        /// 
        /// Some sites (such as eBay US, Germany, Austria, and Switzerland) are updating,
        /// replacing, deleting, or merging some products (as a result of migrating from one
        /// catalog data provider to another). If you specify one of these products, the call may
        /// return a warning, or it may return an error if the product has been deleted.
        /// </param>
        ///
        /// <param name="ExternalProductID">
        /// An exclusive query to only retrieve items that were listed with the
        /// specified ISBN or UPC. Only applicable for items that were listed with
        /// Pre-filled Item Information in media categories (Books, Music, DVDs and
        /// Movies, and Video Games). You must pass ProductID, Query,
        /// ExternalProductID, or CategoryID in the request. If you use
        /// ExternalProductID, do not use Query, ProductID, or CategoryID.
        /// </param>
        ///
        /// <param name="Categories">
        /// Retrieves statistical (histogram) information about categories that contain items
        /// that match the query. Can also cause the result to include information
        /// about buying guides that are associated with the matching categories.
        /// Does not control the set of listings to return or the details to return
        /// for each listing.
        /// </param>
        ///
        /// <param name="TotalOnly">
        /// Retrieves the total quantity of matching items, without returning the item
        /// data. See PaginationResult.TotalNumberOfEntries in the response. If
        /// TotalOnly and Categories.CategoriesOnly are both specified in the request
        /// and their values are inconsistent with each other, TotalOnly overrides
        /// Categories.CategoriesOnly. That is, if TotalOnly is true and
        /// Categories.CategoriesOnly is false, the results include matching
        /// categories but no item data or buying guides. If TotalOnly is false and
        /// Categories.CategoriesOnly is true, the results include matching
        /// categories, item data, and buying guides. If TotalOnly is not specified,
        /// it has no logical effect.
        /// </param>
        ///
        /// <param name="EndTimeFrom">
        /// Limits the results to items ending within a time range. EndTimeFrom
        /// specifies the beginning of the time range. Specify a time in the future.
        /// If you specify a time in the past, the current time is used. If specified,
        /// EndTimeTo must also be specified (with a value equal to or later than
        /// EndTimeFrom). Specify the time in GMT. Cannot be used with the ModTimeFrom
        /// filter.
        /// </param>
        ///
        /// <param name="EndTimeTo">
        /// Limits the results to items ending within a time range. EndTimeTo specifies
        /// the end of the time range. If specified, EndTimeFrom must also be specified
        /// (with a value equal to or earlier than EndTimeTo). Specify the time in GMT.
        /// Cannot be used with the ModTimeFrom filter.
        /// </param>
        ///
        /// <param name="ModTimeFrom">
        /// Limits the results to active items whose status has changed
        /// since the specified time. Specify a time in the past.
        /// Time must be in GMT. Cannot be used with the EndTime filters.
        /// </param>
        ///
        /// <param name="IncludeGetItFastItems">
        /// When passed with a value of true, limits the results to Get It Fast listings.
        /// </param>
        ///
        /// <param name="PaymentMethod">
        /// Limits the results to items that accept a specific payment method or methods.
        /// </param>
        ///
        /// <param name="GranularityLevel">
        /// Optional tag that currently accepts only one value for this call: Coarse.
        /// Other values return an error. If you specify Coarse, the call
        /// returns the fields shown in the
        /// <a href="#GranularityLevel">GranularityLevel table</a>
        /// plus any tags resulting from the detail level you specify.
        /// Controls the fields to return for each listing (not the set of
        /// listings that match the query).
        /// </param>
        ///
        /// <param name="ExpandSearch">
        /// Expands search results when a small result set is returned. For example,
        /// on the US site (site ID 0), if a search would normally result in fewer
        /// than 10 items, then if you specify true for this tag, the search results
        /// are expanded. Specifically, the search returns items (if there are
        /// matches) in one or more of the following containers:
        /// InternationalExpansionArray (for items available from international
        /// sellers), FilterRemovedExpansionArray (items that would be returned if
        /// filters such as PriceRangeFilter are removed), StoreExpansionArray (for
        /// items listed in the Store Inventory Format), and
        /// AllCategoriesExpansionArray (for items available if category filters are
        /// removed). Maximum number of items returned in each expansion container is
        /// 6 to 10.
        /// </param>
        ///
        /// <param name="Lot">
        /// Limits the results to only those listings for which Item.LotSize is 2 or greater.
        /// </param>
        ///
        /// <param name="AdFormat">
        /// Restricts listings to return only items that have the Ad Format feature.
        /// If true, the values of ItemTypeFilter and
        /// StoreSearchFilter are ignored (if they are specified). That is, "AND"
        /// logic is not applied.
        /// </param>
        ///
        /// <param name="FreeShipping">
        /// If true, only items with free shipping for the user's location are
        /// returned. The user's location is determined from the site ID specified
        /// in the request. If false, no filtering is done via this attribute. A
        /// listing is not considered a free shipping listing if it requires
        /// insurance or requires pick up or requires a shipping surcharge.
        /// </param>
        ///
        /// <param name="Quantity">
        /// Limits the results to listings that offer a certain number of items
        /// matching the query. If Lot is also specified, then Quantity is the number
        /// of lots multiplied by the number of objects in each lot. Use
        /// QuantityOperator to specify that you are seeking listings with quantities
        /// greater than, equal to, or less than Quantity.
        /// </param>
        ///
        /// <param name="QuantityOperator">
        /// Limits the results to listings with quantities greater than, equal to, or
        /// less than Quantity. Controls the set of listings to return (not the
        /// details to return for each listing).
        /// </param>
        ///
        /// <param name="SellerBusinessType">
        /// Limits the results to those of a particular seller business type such as
        /// commercial or private. Applies only to the following sites: UK, France, and Germany.
        /// </param>
        ///
        /// <param name="IncludeCondition">
        /// If true, each item in the result set can also
        /// include the item condition (e.g., New or Used) in the
        /// ItemSpecific property of the response. An item only includes
        /// the condition in the response if the seller filled in the
        /// Item Condition in the Item Specifics section of the listing.
        /// (That is, the condition is not returned if the seller
        /// only put the word "New" in the listing's title.) 
        /// 
        /// Controls the details to return for each listing (not the set of
        /// listings that match the query). 
        /// To control whether to retrieve only new or used items,
        /// see ItemCondition (or SearchRequest).
        /// </param>
        ///
        /// <param name="IncludeFeedback">
        /// If true, each item in the result set also includes information about the
        /// seller's feedback. Controls the details to return for each listing (not
        /// the set of listings that match the query).
        /// 
        /// For GetSearchResults, if set to true will also return the seller's User ID.
        /// </param>
        ///
        /// <param name="CharityID">
        /// Restricts listings to return only items that support the specified
        /// nonprofit charity organization. Retrieve CharityID values with
        /// GetCharities.
        /// </param>
        ///
        /// <param name="LocalSearchPostalCode">
        /// Include local items in returning results near this postal code. This
        /// postal code is the basis for local search.
        /// </param>
        ///
        /// <param name="MaxRelatedSearchKeywords">
        /// The maximum number of related keywords to be retrieved.
        /// Use this field if you want the search results to include
        /// recommended keywords (that is, keywords matching one or more of the
        /// original keywords) in a RelatedSearchKeywordArray container.
        /// A value of 0 (the default) means no related search information is processed.
        /// </param>
        ///
        /// <param name="AffiliateTrackingDetails">
        /// Container for affiliate tags.
        /// If you use affiliate tags, it is possible to get affiliate commissions
        /// based on calls made by your application.
        /// (See the <a href="https://www.ebaypartnernetwork.com/" target="_blank">eBay Partner Network</a>
        /// for information about commissions.)
        /// Affiliate tags enable the tracking of user activity.
        /// You can use child tags of AffiliateTrackingDetails if you want
        /// call output to include a string that includes
        /// affiliate tracking information.
        /// </param>
        ///
        /// <param name="BidRange">
        /// Limits the results to items with a minimum or maximum number
        /// of bids. You also can specify a bid range by specifying
        /// both a minimum and maximum number of bids in one call.
        /// </param>
        ///
        /// <param name="ItemCondition">
        /// Limits the results to new or used items, plus items that have no
        /// condition specified.
        /// 
        /// Matches the new or used condition that the seller specified
        /// in the Item Specifics section of the listing.
        /// (That is, this won't specifically match on items where the seller
        /// only put the word "New" in the listing's title.)
        /// 
        /// Only applicable to sites and categories that support a
        /// sitewide (global) item condition. For example, the US site
        /// does not currently support this. See GetCategory2CS.
        /// To search for the item condition on the US site,
        /// use a product finder instead (see SearchRequest).
        /// </param>
        ///
        /// <param name="TicketFinder">
        /// Searches for event ticket listings only. If specified, this cannot be empty.
        /// For example, to search for all tickets (with no event, date, city, or quantity constraints),
        /// specify EventType with a value of Any.
        /// If specified, Query is optional. Query is useful when the user wants to search
        /// for a particular event name (like "eric clapton") or a venue that might be
        /// included in the listing title.
        /// If TicketFinder and SearchRequest are both specified in the same request,
        /// SearchRequest is ignored.
        /// </param>
        ///
        /// <param name="Group">
        /// You can group Best Match search results by category by specifying BestMatchCategoryGroup
        /// in the Order field. When you specify BestMatchCategoryGroup
        /// in the Order field, you can also specify Group.MaxEntriesPerGroup and/or Group.MaxGroups.
        /// When you specify BestMatchCategoryGroup
        /// in the Order field, there will be fewer results returned because Best Matches
        /// in lower-level (leaf) categories and higher-level categories are taken into account.
        /// There is not a direct correlation between the number of items returned in a 
        /// regular sort (or in a BestMatch sort) and the number of items that are returned 
        /// when you specify BestMatchCategoryGroup in the Order field.
        /// When you specify BestMatchCategoryGroup
        /// in the Order field, not more than 2 pages of results are returned.
        /// See also the GroupCategoryID element in ItemType.
        /// </param>
        ///
        /// <param name="HideDuplicateItems">
        /// Specifies whether or not to remove duplicate items from search results.
        /// When set to true, and there are duplicate items for an item in the
        /// search results, the subsequent duplicates will not appear in the
        /// results.
        /// Item listings are considered duplicates in the following
        /// conditions: 
        /// <ul>
        /// <li>Items are listed by the same seller</li>
        /// <li>Items have exactly the same item title</li>
        /// <li>Items have similar listing formats</li>
        /// <ul>
        /// <li>Auctions: Auction Items, Auction BIN items, Multi-Quantity
        /// Auctions, and Multi-Quantity Auctions BIN items</li>
        /// <li>Fixed Price: Fixed Price, Multi-quantity Fixed Price, Fixed
        /// Price with Best Offer, and Store Inventory Format items</li>
        /// <li>Classified Ads</li>
        /// </ul>
        /// </ul>
        /// For Auctions, items must also have the same price and number of bids to
        /// be considered duplicates.
        /// 
        /// Filtering of duplicate item listings is not supported on all sites.
        /// </param>
        ///
        public SearchResultItemTypeCollection GetSearchResults(bool MotorsGermanySearchable, string Query, string CategoryID, SearchFlagsCodeTypeCollection SearchFlagsList, PriceRangeFilterType PriceRangeFilter, ProximitySearchType ProximitySearch, ItemTypeFilterCodeType ItemTypeFilter, SearchTypeCodeType SearchType, UserIdFilterType UserIdFilter, SearchLocationFilterType SearchLocationFilter, SearchStoreFilterType StoreSearchFilter, SearchSortOrderCodeType Order, PaginationType Pagination, SearchRequestType SearchRequest, string ProductID, ExternalProductIDType ExternalProductID, RequestCategoriesType Categories, bool TotalOnly, DateTime EndTimeFrom, DateTime EndTimeTo, DateTime ModTimeFrom, bool IncludeGetItFastItems, PaymentMethodSearchCodeType PaymentMethod, GranularityLevelCodeType GranularityLevel, bool ExpandSearch, bool Lot, bool AdFormat, bool FreeShipping, int Quantity, QuantityOperatorCodeType QuantityOperator, SellerBusinessCodeType SellerBusinessType, bool IncludeCondition, bool IncludeFeedback, int CharityID, string LocalSearchPostalCode, int MaxRelatedSearchKeywords, AffiliateTrackingDetailsType AffiliateTrackingDetails, BidRangeType BidRange, ItemConditionCodeType ItemCondition, TicketDetailsType TicketFinder, GroupType Group, bool HideDuplicateItems)
        {
            this.MotorsGermanySearchable = MotorsGermanySearchable;
            this.Query = Query;
            this.CategoryID = CategoryID;
            this.SearchFlagsList = SearchFlagsList;
            this.PriceRangeFilter = PriceRangeFilter;
            this.ProximitySearch = ProximitySearch;
            this.ItemTypeFilter = ItemTypeFilter;
            this.SearchType = SearchType;
            this.UserIdFilter = UserIdFilter;
            this.SearchLocationFilter = SearchLocationFilter;
            this.StoreSearchFilter = StoreSearchFilter;
            this.Order = Order;
            this.Pagination = Pagination;
            this.SearchRequest = SearchRequest;
            this.ProductID = ProductID;
            this.ExternalProductID = ExternalProductID;
            this.Categories = Categories;
            this.TotalOnly = TotalOnly;
            this.EndTimeFrom = EndTimeFrom;
            this.EndTimeTo = EndTimeTo;
            this.ModTimeFrom = ModTimeFrom;
            this.IncludeGetItFastItems = IncludeGetItFastItems;
            this.PaymentMethod = PaymentMethod;
            this.GranularityLevel = GranularityLevel;
            this.ExpandSearch = ExpandSearch;
            this.Lot = Lot;
            this.AdFormat = AdFormat;
            this.FreeShipping = FreeShipping;
            this.Quantity = Quantity;
            this.QuantityOperator = QuantityOperator;
            this.SellerBusinessType = SellerBusinessType;
            this.IncludeCondition = IncludeCondition;
            this.IncludeFeedback = IncludeFeedback;
            this.CharityID = CharityID;
            this.LocalSearchPostalCode = LocalSearchPostalCode;
            this.MaxRelatedSearchKeywords = MaxRelatedSearchKeywords;
            this.AffiliateTrackingDetails = AffiliateTrackingDetails;
            this.BidRange = BidRange;
            this.ItemCondition = ItemCondition;
            this.TicketFinder = TicketFinder;
            this.Group = Group;
            this.HideDuplicateItems = HideDuplicateItems;

            Execute();
            return ApiResponse.SearchResultItemArray;
        }
Exemple #5
0
        /// <summary>
        /// Searches for stock information and reviews for certain kinds of products,
        /// such as a particular digital camera model.
        /// <p>
        /// GetProducts is designed to be useful to applications that support
        /// shopping comparison, product reviews, or basic supply and
        /// demand data.
        /// </p>
        /// <p>
        /// GetProducts also supports tracking so that members of the
        /// eBay Affiliates Program can get commissions for driving traffic to eBay.
        /// </p>
        /// <p class="tablenote"><b>Note:</b>
        /// For selling use cases, use GetProductSearchResults and
        /// GetProductSellingPages instead.
        /// </p>
        /// <p>
        /// To use this call, you typically pass in keywords, and GetProducts finds
        /// products with matching words in the product title, description, and/or
        /// Item Specifics.
        /// <p>
        /// For each product of interest, you call GetProducts again to retrieve
        /// additional details that would be useful to buyers:
        /// </p>
        /// <ul>
        /// <li>Top reviews of the product by eBay members,
        /// including part of the review text, plus links to the full text on the
        /// eBay Web site.</li>
        /// <li>Relevant buying guides (shopping advice) written by
        /// eBay members and by eBay staff, including part of the guide text,
        /// plus links to the full text
        /// on the eBay Web site.</li>
        /// <li>Up to 200 matching items on eBay (if any). (To find more matching
        /// items, use GetSearchResults.)</li>
        /// </ul>
        /// <p>
        /// <span class="tablenote"><b>Note:</b>
        /// As catalog queries can take longer than item queries,
        /// GetProducts can be slower than GetSearchResults.
        /// Also, due to the way product data is cached, you may get a faster response
        /// when you run the same query a second time.</span>
        /// </summary>
        /// 
        /// <param name="ProductSearch">
        /// Contains the fields that form the search query. You can query
        /// against keywords, an eBay product reference ID (not to be confused
        /// with an eBay product ID), or external product ID (like an ISBN).
        /// </param>
        ///
        /// <param name="ProductSort">
        /// Sorts the list of products returned. This is mostly only useful
        /// with QueryKeywords. (When you use ExternalProductID or
        /// ProductReferenceID, eBay usually only returns one product.)
        /// </param>
        ///
        /// <param name="IncludeItemArray">
        /// If true, the response includes items (if any) that match the
        /// product specified in ExternalProductID or ProductReferenceID.
        /// Not applicable with QueryKeywords.
        /// </param>
        ///
        /// <param name="IncludeReviewDetails">
        /// If true, the response includes up to 20 reviews (if any)
        /// for the product specified in ExternalProductID or
        /// ProductReferenceID.
        /// The reviews are sorted by most helpful (most votes) first.
        /// When you include review details, please note that
        /// response times may be longer than 60 seconds.
        /// Not applicable with QueryKeywords.
        /// </param>
        ///
        /// <param name="IncludeBuyingGuideDetails">
        /// If true, the response includes up to 5 buying guides (if any)
        /// for the product specified in ExternalProductID or
        /// ProductReferenceID.
        /// Not applicable with QueryKeywords.
        /// </param>
        ///
        /// <param name="IncludeHistogram">
        /// If true, the response includes a histogram that lists the
        /// number of matching products found and the domains in which
        /// they were found. (A domain is like a high-level category.)
        /// Including the histogram can affect the call's performance.
        /// You may see significantly slower response times when many
        /// matching products are found.
        /// </param>
        ///
        /// <param name="AffiliateTrackingDetails">
        /// See the
        /// <a href="https://www.ebaypartnernetwork.com/" target="_blank">eBay Partner Network</a>.
        /// eBay uses the values in AffiliateTrackingDetails to build a View Item URL
        /// string, in order to include that string in the response.
        /// When a user clicks through the URL to eBay,
        /// you may get a commission (see the URL above).
        /// Only applicable when IncludeItemArray is specified
        /// (because the View Item URL is only returned in item information,
        /// not in product information).
        /// </param>
        ///
        /// <param name="HideDuplicateItems">
        /// Specifies whether or not to remove duplicate items from search results.
        /// When set to true, and there are duplicate items for an item in the
        /// search results, the subsequent duplicates will not appear in the
        /// results.
        /// Item listings are considered duplicates in the following
        /// conditions: 
        /// <ul>
        /// <li>Items are listed by the same seller</li>
        /// <li>Items have exactly the same item title</li>
        /// <li>Items have similar listing formats</li>
        /// <ul>
        /// <li>Auctions: Auction Items, Auction BIN items, Multi-Quantity
        /// Auctions, and Multi-Quantity Auctions BIN items</li>
        /// <li>Fixed Price: Fixed Price, Multi-quantity Fixed Price, Fixed
        /// Price with Best Offer, and Store Inventory Format items</li>
        /// <li>Classified Ads</li>
        /// </ul>
        /// </ul>
        /// For Auctions, items must also have the same price and number of bids to
        /// be considered duplicates.
        /// 
        /// Filtering of duplicate item listings is not supported on all sites.
        /// For GetProducts, this filter only works when IncludeItemArray is set to
        /// true.
        /// </param>
        ///
        public CharacteristicsSetProductHistogramType GetProducts(ProductSearchType ProductSearch, ProductSortCodeType ProductSort, bool IncludeItemArray, bool IncludeReviewDetails, bool IncludeBuyingGuideDetails, bool IncludeHistogram, AffiliateTrackingDetailsType AffiliateTrackingDetails, bool HideDuplicateItems)
        {
            this.ProductSearch = ProductSearch;
            this.ProductSort = ProductSort;
            this.IncludeItemArray = IncludeItemArray;
            this.IncludeReviewDetails = IncludeReviewDetails;
            this.IncludeBuyingGuideDetails = IncludeBuyingGuideDetails;
            this.IncludeHistogram = IncludeHistogram;
            this.AffiliateTrackingDetails = AffiliateTrackingDetails;
            this.HideDuplicateItems = HideDuplicateItems;

            Execute();
            return ApiResponse.CharacteristicsSetProductHistogram;
        }