minchao / shopee-php

Shopee OpenAPI 1.0 Client for PHP
BSD 3-Clause "New" or "Revised" License
142 stars 84 forks source link

Shopee return 'error_params' for getOrdersList function #5

Closed ken-ywk closed 6 years ago

ken-ywk commented 6 years ago

Hi, I'm not sure what's wrong with getOrdersList function as the shopee api return 'error_params'. It's beyond my capability to troubleshoot. Hope you can help. Thanks. https://open.shopee.com/documents?module=4&type=1&id=399

$response = $client->order->getOrdersList(); print_r($response);

[data:Shopee\ResponseData:private] => Array   (   [error] => error_params )

minchao commented 6 years ago

Could you check the request body? It should be like below:

{"partner_id":12345,"shopid":67890,"timestamp":1539168484}
ken-ywk commented 6 years ago

Hi yes I've checked. I echoed $jsonBody in client->newRequest and it is same as your example {"partner_id":12345,"shopid":67890,"timestamp":1539168484}

ken-ywk commented 6 years ago

Hi, it seems either create_time_from & create_time_to or update_time_from & update_time_to must be included for success call.

kyawsoekhaing commented 3 years ago

Hi, it seems either create_time_from & create_time_to or update_time_from & update_time_to must be included for success call.

can anyone help me how to generate create_time_from and create_time_to?

what is the format ?

minchao commented 3 years ago

@kyawsoekhaing They are Unix time

BroYoutMrr commented 2 years ago

{"error": "error_params"}

BroYoutMrr commented 2 years ago

{"error": "error_params"}

BroYoutMrr commented 2 years ago

{"error": "error_params"}

BroYoutMrr commented 2 years ago

{"partner_id":12345,"shopid":67890,"timestamp":1539168484}

BroYoutMrr commented 2 years ago

{"partner_id":12345,"shopid":67890,"timestamp":1539168484}