使用eBay api获取所有卖家交易

时间:2015-12-27 08:01:23

标签: c# ebay ebay-api

如何获取卖家在eBay上所有的所有物品和交易。我可以使用以下代码成功接收过去10天的所有交易详情:

// Getting sold items
var durationSpecifiedeBaySellingCall = new GetMyeBaySellingCall(apiContext)
{
    SoldList = new ItemListCustomizationType
    {
        DurationInDays = 10,
        DurationInDaysSpecified = true,
        Include = true
    },

    DetailLevelList = new DetailLevelCodeTypeCollection
    {
        DetailLevelCodeType.ReturnAll
    }
};
durationSpecifiedeBaySellingCall.Execute();

但是我无法接收过去10年的所有交易,例如,将DurationInDays的值替换为3650而不是10时。durationSpecifiedeBaySellingCall.SoldListReturn为空。如何正确获取所有用户事务的列表?

1 个答案:

答案 0 :(得分:2)

看起来您正在使用GetMyeBaySelling API调用,文档指出您最多只能拉60天。

eBay Documentation GetMyeBaySelling

相关问题