EbaySDK Python GetFeedback(ItemID)仅返回100个值

2024-09-30 03:26:16 发布

您现在位置:Python中文网/ 问答频道 /正文

我将ebaysdk用于Python。我正在使用Trading API获取带有'DetailsLevel': 'ReturnAll'的项目的反馈(基于ItemID)。我只想得到反馈,是留给卖方,但返回的数据主要包含反馈给买方和回应是有限的,只有100个条目。 更具体地说,它返回的是“留给他人的反馈”。你知道吗

以下是我的代码:

api2 = Trading(config_file='ebay.yaml')
response2=api2.execute('GetFeedback',{'ItemID':'153221482165', 'Role':'Seller', 'DetailLevel':'ReturnAll'}).dict()
print(response2)

有没有办法过滤我对“卖家反馈”的回复,让API返回所有数据而不是前100个条目。你知道吗

我的Python版本是3.7.0


Tags: 数据项目代码apiconfig条目api2trading
1条回答
网友
1楼 · 发布于 2024-09-30 03:26:16

您应该仔细阅读易趣API GetFeedback documentation

如果你只需要卖家的反馈,试试看

FeedbackType.FeedbackReceivedAsSeller

对于分页,似乎使用ItemId一次只能得到100个结果:

Unique identifier for an eBay item listing. A listing can have multiple order line items, but only one ItemID. If ItemID is specified in the GetFeedback request, the returned Feedback record(s) are restricted to the specified ItemID. The maximum number of Feedback records that can be returned is 100. Max length: 19 (Note: ItemIDs are usually 9 to 12 digits).

干杯

相关问题 更多 >

    热门问题