I am trying to get all products from a user's ebay account, but when I run the below code I am only getting a few hundred. I can confirm there is 2000 products.
How can I pull all products without using the start and end time and date parameters?
$url = 'http://ift.tt/Km6LJ3';
$user_name = "{username is in here}";
$auth_token ={token is in here}";
for ($i = 1; $i <= 10; $i++) {
$headers = array(
'Content-Type: text/xml',
'X-EBAY-API-COMPATIBILITY-LEVEL:877',
'X-EBAY-API-DEV-NAME:177b0624-2d99-428a-8659-7404d9043c76',
'X-EBAY-API-APP-NAME:PeteNayl-d415-49bb-a950-495237441c1c',
'X-EBAY-API-CERT-NAME:6c336965-1a1f-4d11-94b1-3843c3ac995b',
'X-EBAY-API-SITEID:3',
'X-EBAY-API-CALL-NAME:GetSellerList');
$xml = '
<?xml version="1.0" encoding="utf-8"?>
<GetSellerListRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>'.$auth_token.'</eBayAuthToken>
</RequesterCredentials>
<Pagination ComplexType="PaginationType">
<EntriesPerPage>200</EntriesPerPage>
<PageNumber>'.$i.'</PageNumber>
</Pagination>
<StartTimeFrom>2014-06-01T21:59:59.005Z</StartTimeFrom>
<StartTimeTo>2014-06-02T21:59:59.005Z</StartTimeTo>
<EndTimeFrom>2014-09-29T21:59:59.005Z</EndTimeFrom>
<EndTimeTo>2014-09-30T21:59:59.005Z</EndTimeTo>
<DetailLevel>ItemReturnDescription</DetailLevel>
<UserID>'.$user_name.'</UserID>
</GetSellerListRequest>';
If I remove the lines of code with the StartTimeFrom to EndTimeTo it shows no products at all?
Thanks
No comments:
Post a Comment