易趣GetOrders API调用不返回订单按要求 [英] Ebay GetOrders API call does not return orders as per the request

查看:199
本文介绍了易趣GetOrders API调用不返回订单按要求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图获取使用PHP脚本日期的特定时期创建的订单。这是我做给eBay上最基本的要求:

I am trying to fetch orders created in a specific period of dates using a php script. This is a most basic request that i am making to ebay:

<?xml version="1.0" encoding="utf-8"?>
<GetOrdersRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>[my authentication token]</eBayAuthToken>
</RequesterCredentials>
<CreateTimeFrom>2012-05-10T00:00:00.000Z</CreateTimeFrom>
<CreateTimeTo>2012-05-15T00:00:00.000Z</CreateTimeTo>
</GetOrdersRequest>

通话兼容级别是773.这同样要求正常工作在ebay上的API测试工具,但是当我在我的脚本中使用它,它返回不正确的结果。结果
返回的条目总数为2648,但该命令阵列只包含100份订单。那些100份订单也不会在我的数据库插入。插入查询返回false。谁能告诉我什么是条目和由易趣返回实际订单之间的区别?我怎样才能获取所有我的订单2648成功?

Call compatibility level is 773. This same request works fine on the API test tool of ebay but when i use it in my script it returns improper result.
Total number of entries returned are 2648 but the order array contains only 100 orders. Those 100 orders are also not inserted in my database. The insert query returns false. Can anyone tell me what is this difference between Entries and actual orders that are returned by ebay? How can i fetch all of my 2648 orders successfully?

推荐答案

您需要设置分页属性。易趣只能每个响应/页返回100份订单。对于2648的订单,你需要做的27调用。

You'll need to set the pagination attribute. eBay can only return 100 Orders per Response/Page. For 2648 orders you'll need to do 27 calls.

请参阅易趣文档正确的语法:

See eBay documentation for correct syntax:

http://developer.ebay.com/devzone/xml/docs/reference/ebay/GetOrders.html#Request.Pagination

这篇关于易趣GetOrders API调用不返回订单按要求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆