使用 Java SDK 调用 eBay API reviseItem
我有两个 ItemType
对象:oldItem
和 newItem
。我想修改
oldItem
以反映newItem
中的更改。为此,我假设在阅读文档之后我们需要提供已删除/已删除字段的列表。
任何人都可以建议一种有效的方法来遍历 newItem 中的所有字段(可以更改),将其与 oldItem 进行比较,然后实际得出一个字符串数组修订版中删除的字段。如果没有删除任何字段,则可能返回空字符串数组。
附言。如果我最初关于向 eBay 提供已删除字段列表的假设不正确,请告诉我。如果这是不正确的,那么我将可以更轻松地通过 API 修改项目。
I have two ItemType
objects: oldItem
and newItem
. I would like to Revise
the oldItem
to reflected changes in the newItem
. To do this I assume after reading the documentation that we need to provide a list of removed/deleted fields.
Can anyone suggest an efficient way to go through all the fields (that can be changed) in the newItem
, compare it to the oldItem
and then actually come up with a string array of fields that was removed in the revision. And perhaps return and empty array of strings if no field was deleted.
PS. Let me know if my initial assumption about providing eBay with a list of deleted fields is incorrect. If that is incorrect then I am gonna have a much easier time revising items through the API.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论