示例#1
0
        /// <summary>
        /// Retrieves a list of the items posted by the authenticated user, including
        /// the related item data.
        /// </summary>
        ///
        /// <param name="UserID">
        /// <br/><br/>
        /// <span class="tablenote"><strong>Note:</strong>
        /// This field should no longer be used, and will be ignored if it is included in a <b>GetSellerList</b> request. There are plans to remove this field from the public WSDL. The only eBay user ID that can be used is the one associated with the authentication token.
        /// </span>
        /// </param>
        ///
        /// <param name="MotorsDealerUserList">
        /// Specifies the list of Motors Dealer sellers for which a special set of
        /// metrics can be requested. Applies to eBay Motors Pro applications only.
        /// </param>
        ///
        /// <param name="EndTimeFrom">
        /// Specifies the earliest (oldest) date to use in a date range filter based on
        /// item end time. Specify either an end-time range or a start-time range
        /// filter in every call request. Each of the time ranges must be a value less than
        /// 120 days.
        /// </param>
        ///
        /// <param name="EndTimeTo">
        /// Specifies the latest (most recent) date to use in a date range filter based on item end time. Must be specified if <b>EndTimeFrom</b> is specified.
        /// </param>
        ///
        /// <param name="Sort">
        /// Specifies the order in which returned items are sorted (based on the end
        /// dates of the item listings). Valid values:
        ///
        /// 0 = No sorting
        /// 1 = Sort in descending order
        /// 2 = Sort in ascending order
        /// </param>
        ///
        /// <param name="StartTimeFrom">
        /// Specifies the earliest (oldest) date to use in a date range filter based on
        /// item start time. Each of the time ranges must be a value less than
        /// 120 days. In all calls, at least one date-range filter must be specified
        /// (i.e., you must specify either the end time range or start time range
        /// in every request).
        /// </param>
        ///
        /// <param name="StartTimeTo">
        /// Specifies the latest (most recent) date to use in a date range filter based on item start time. Must be specified if <b>StartTimeFrom</b> is specified.
        /// </param>
        ///
        /// <param name="Pagination">
        /// Contains the data controlling the pagination of the returned values. If you set a <b>DetailLevel</b> in this call, you must set pagination values. The <b>Pagination</b> field contains the number of items to be returned per page of data (per call), and the page number to return with the current call.
        /// </param>
        ///
        /// <param name="GranularityLevel">
        /// Specifies the subset of item and user fields to return. See <b>GetSellerList</b> for a list of the fields that are returned for each granularity level. For <b>GetSellerLis</b>t, use <b>DetailLevel</b> or <b>GranularityLevel</b> in a request, but not both. For <b>GetSellerList</b>, if <b>GranularityLevel</b> is specified, <b>DetailLevel</b> is ignored.
        /// </param>
        ///
        /// <param name="SKUArrayList">
        /// Container for a set of SKUs.
        /// Filters (reduces) the response to only include active listings
        /// that the seller listed with any of the specified SKUs.
        /// If multiple listings include the same SKU, they are
        /// all returned (assuming they also match the other criteria
        /// in the GetSellerList request).
        ///
        /// SKUArray can be used to retrieve items listed by the user
        /// identified in AuthToken or in UserID.
        ///
        /// <span class="tablenote"><b>Note:</b>
        /// Listings with matching SKUs are returned regardless of their
        /// Item.InventoryTrackingMethod settings.
        /// </span>
        /// </param>
        ///
        /// <param name="IncludeWatchCount">
        /// Specifies whether to include <b>WatchCount</b> in Item nodes returned. <b>WatchCount</b> is only returned with <b>DetailLevel ReturnAll</b>.
        /// </param>
        ///
        /// <param name="AdminEndedItemsOnly">
        /// Specifies whether to return only items that were administratively ended
        /// based on a policy violation.
        /// </param>
        ///
        /// <param name="CategoryID">
        /// The category ID for the items retrieved. If you specify <b>CategoryID</b> in a <b>GetSellerList</b> call, the response contains only items in the category you specify.
        /// </param>
        ///
        /// <param name="IncludeVariations">
        /// If true, the <b>Variations</b> node is returned for all multi-variation listings in the response.  <b>Note:</b> If the seller includes a large number of variations in many listings, using this flag may degrade the call's performance. Therefore, when you use this flag, you may need to reduce the total number of items you're requesting at once. <br/><br/> For example, you may need to use shorter time ranges in the <b>EndTime</b> or <b>StartTime</b> filters, fewer entries per page in <b>Pagination</b>, and/or <b>SKUArray</b>.
        /// </param>
        ///
        public ItemTypeCollection GetSellerList(string UserID, UserIDArrayType MotorsDealerUserList, DateTime EndTimeFrom, DateTime EndTimeTo, int Sort, DateTime StartTimeFrom, DateTime StartTimeTo, PaginationType Pagination, GranularityLevelCodeType GranularityLevel, StringCollection SKUArrayList, bool IncludeWatchCount, bool AdminEndedItemsOnly, int CategoryID, bool IncludeVariations)
        {
            this.UserID = UserID;
            this.MotorsDealerUserList = MotorsDealerUserList;
            this.EndTimeFrom          = EndTimeFrom;
            this.EndTimeTo            = EndTimeTo;
            this.Sort                = Sort;
            this.StartTimeFrom       = StartTimeFrom;
            this.StartTimeTo         = StartTimeTo;
            this.Pagination          = Pagination;
            this.GranularityLevel    = GranularityLevel;
            this.SKUArrayList        = SKUArrayList;
            this.IncludeWatchCount   = IncludeWatchCount;
            this.AdminEndedItemsOnly = AdminEndedItemsOnly;
            this.CategoryID          = CategoryID;
            this.IncludeVariations   = IncludeVariations;

            Execute();
            return(ApiResponse.ItemArray);
        }
		/// <summary>
		/// Returns a list of the items posted by the authenticated user, including
		/// the related item data.
		/// </summary>
		/// 
		/// <param name="UserID">
		/// Specifies the seller whose items will be returned. UserID is an optional
		/// input. If not specified, retrieves listings for the user identified by the
		/// authentication token passed in the request. Note that since user
		/// information is anonymous to everyone except the bidder and the seller
		/// (during an active auction), only sellers looking for information about
		/// their own listings and bidders who know the user IDs of their sellers will
		/// be able to make this API call successfully.
		/// </param>
		///
		/// <param name="MotorsDealerUserList">
		/// Specifies the list of Motors Dealer sellers for which a special set of
		/// metrics can be requested. Applies to eBay Motors Pro applications only.
		/// </param>
		///
		/// <param name="EndTimeFrom">
		/// Specifies the earliest (oldest) date to use in a date range filter based on
		/// item end time. Specify either an end-time range or a start-time range
		/// filter in every call request. Each of the time ranges must be a value less than
		/// 120 days.
		/// </param>
		///
		/// <param name="EndTimeTo">
		/// Specifies the latest (most recent) date to use in a date range filter based
		/// on item end time. Must be specified if EndTimeFrom is specified.
		/// </param>
		///
		/// <param name="Sort">
		/// Specifies the order in which returned items are sorted (based on the end
		/// dates of the item listings). Valid values:
		/// 
		/// 0 = No sorting
		/// 1 = Sort in descending order
		/// 2 = Sort in ascending order
		/// </param>
		///
		/// <param name="StartTimeFrom">
		/// Specifies the earliest (oldest) date to use in a date range filter based on
		/// item start time. Each of the time ranges must be a value less than
		/// 120 days. In all calls, at least one date-range filter must be specified
		/// (i.e., you must specify either the end time range or start time range
		/// in every request).
		/// </param>
		///
		/// <param name="StartTimeTo">
		/// Specifies the latest (most recent) date to use in a date range filter based
		/// on item start time. Must be specified if StartTimeFrom is specified.
		/// </param>
		///
		/// <param name="Pagination">
		/// Contains the data controlling the pagination of the returned values.
		/// If you set a DetailLevel in this call, you must set pagination values.
		/// The Pagination field contains
		/// the number of items to be returned per page of data (per call),
		/// and the page number to return with the current call.
		/// </param>
		///
		/// <param name="GranularityLevel">
		/// Specifies the subset of item and user fields to return. See GetSellerList
		/// in the eBay Features Guide for a list of the fields that are returned
		/// for each granularity level. For GetSellerList, use DetailLevel or
		/// GranularityLevel in a request, but not both. For GetSellerList, if
		/// GranularityLevel is specified, DetailLevel is ignored.
		/// </param>
		///
		/// <param name="SKUArrayList">
		/// Container for a set of SKUs.
		/// Filters (reduces) the response to only include active listings
		/// that the seller listed with any of the specified SKUs.
		/// If multiple listings include the same SKU, they are
		/// all returned (assuming they also match the other criteria
		/// in the GetSellerList request).
		/// 
		/// SKUArray can be used to retrieve items listed by the user
		/// identified in AuthToken or in UserID.
		/// 
		/// <span class="tablenote"><b>Note:</b>
		/// Listings with matching SKUs are returned regardless of their
		/// Item.InventoryTrackingMethod settings.
		/// </span>
		/// </param>
		///
		/// <param name="IncludeWatchCount">
		/// Specifies whether to include WatchCount in Item nodes returned.
		/// WatchCount is only returned with DetailLevel ReturnAll.
		/// </param>
		///
		/// <param name="AdminEndedItemsOnly">
		/// Specifies whether to return only items that were administratively ended
		/// based on a policy violation.
		/// </param>
		///
		/// <param name="CategoryID">
		/// The category ID for the items retrieved.
		/// If you specify CategoryID in a GetSellerList call,
		/// the response contains only items in the category you specify.
		/// </param>
		///
		/// <param name="IncludeVariations">
		/// If true, the Variations node is returned for all multi-variation
		/// listings in the response.
		/// 
		/// Please note that if the seller includes a large number of
		/// variations in many listings, using this flag may degrade the
		/// call's performance. Therefore, when you use this flag, you
		/// may need to reduce the total number of items you're requesting
		/// at once.
		/// For example, you may need to use shorter time ranges in the
		/// EndTime or StartTime filters, fewer entries per page in
		/// Pagination, and/or SKUArray.
		/// </param>
		///
		public ItemTypeCollection GetSellerList(string UserID, UserIDArrayType MotorsDealerUserList, DateTime EndTimeFrom, DateTime EndTimeTo, int Sort, DateTime StartTimeFrom, DateTime StartTimeTo, PaginationType Pagination, GranularityLevelCodeType GranularityLevel, StringCollection SKUArrayList, bool IncludeWatchCount, bool AdminEndedItemsOnly, int CategoryID, bool IncludeVariations)
		{
			this.UserID = UserID;
			this.MotorsDealerUserList = MotorsDealerUserList;
			this.EndTimeFrom = EndTimeFrom;
			this.EndTimeTo = EndTimeTo;
			this.Sort = Sort;
			this.StartTimeFrom = StartTimeFrom;
			this.StartTimeTo = StartTimeTo;
			this.Pagination = Pagination;
			this.GranularityLevel = GranularityLevel;
			this.SKUArrayList = SKUArrayList;
			this.IncludeWatchCount = IncludeWatchCount;
			this.AdminEndedItemsOnly = AdminEndedItemsOnly;
			this.CategoryID = CategoryID;
			this.IncludeVariations = IncludeVariations;

			Execute();
			return ApiResponse.ItemArray;
		}