0

Just started using the eBay API.

I created some products and purchased it with another Sandbox account. In the Sellers account, I can see 2 products under the 'Sold' section.

I am using the GetOrders API call to fetch the orders/sales. And in the response I am getting a continuous string.

2013-04-20T07:28:55.919ZSuccess819E819_CORE_API_15993720_R111false260765010Completed0.038.00.0NoPaymentFailure2013-04-09T07:15:25.000ZPayPalCompletefalse0.0false0.0StandardShippingFromOutsideUS4.01false510103falseBuyer2013-04-09T07:15:25.000ZPayPalTest UseraddresscityWAUSUnited States1 800 111 1111981026806769eBayStandardShippingFromOutsideUS4.034.038.0xxx.yyy@gmail.com1012013-04-06T11:32:41.000Z110115066261US1000New1None023.0112.51USeBay2.00.0110115066261-0xxx.yyy@gmail.com1022013-04-09T07:13:20.000Z110115066411US1000Brand New1None2705398200111.078.41USeBay2.00.0110115066411-27053982001testuser_xxxyyy252013-04-09T07:15:25.000ZfalsenY+sHZ2PrBmdj6wVnY+sEZ2PrA2dj6wFk4GhCpKBpwidj6x9nY+seQ==None10011

I don't see any labels associated with the values, like date = 2013-04-09T07:15:25.000Z

And why is it not formatted?

Any help would be appreciated.

Thank you.

4

1 回答 1

0

正如我认为你的问题是当你echo回答时,你的浏览器会自动将标题设置为 html 并导致你的视图。所以只需在文件顶部添加 xml 标头(请记住,除了一个 xml 之外不要回显其他任何内容,否则您将收到标头错误)。

header ("Content-Type:text/xml"); 

关于您关于按时间过滤的问题,您的回答我肯定会去,NumberOfDays因为我看到您使用过。否则,您可以添加ModTimeFrom最后ModTimeTo一次x修改的订单或CreateTimeFrom检查CreateTimeTo输入的新订单。

于 2013-04-22T07:43:08.717 回答