2016-12-29 48 views
0

如何使用bigcommerce v2 api对客户列表进行排序。我做了下面的代码。如何使用bigcommerce v2 api对客户列表进行排序

$filter = array("page" =>$page, "limit" =>50); 
$customersList = $this->store->getCustomers($filter);         public static function getCustomers($filter = array()) 
    { 
     $filter = Filter::create($filter); 
     return self::getCollection('/customers'. $filter->toQuery(), 'Customer'); 
    } 

首先,我想通过在desc中的date_created排序第一个整个列表,然后过滤它的分页。先显示新添加的记录。 请帮我找出解决方案..

+0

尝试使用'min_date_created'&'max_date_created'过滤器来查看数据集是如何返回 – 2016-12-29 16:58:13

+0

没有得到排序结果。 –

回答

相关问题