public function getListCustomer($param)
    {
        $hasError = false;

        $param['method'] = CheckoutApi_Client_Adapter_Constant::API_GET;
        $this->flushState();
        $uri = $this->getUriCustomer();
        $delimiter = '?';
        $createdAt = 'created=';

        if(isset($param['created_on'])) {
            $uri="{$uri}{$delimiter}{$createdAt}{$param['created_on']}|";
            $delimiter = '&';

        }else {
            if (isset($param['from_date'])) {
                $fromDate = time($param['from_date']);
                $uri = "{$uri}{$delimiter}{$createdAt}{$fromDate}";
                $delimiter = '&';
                $createdAt = '|';
            }

            if (isset($param['to_date'])) {
                $toDate = time($param['to_date']);
                $uri = "{$uri}{$createdAt}{$toDate}";
                $delimiter = '&';

            }
        }

        if(isset($param['count'])){

            $uri =  "{$uri}{$delimiter}count={$param['count']}";
            $delimiter = '&';
        }

        if(isset($param['offset'])){
            $uri =  "{$uri}{$delimiter}offset={$param['offset']}";
        }

        return $this->request( $uri ,$param,!$hasError);
    }
public function getListCustomer($param)
    {
        $hasError = false;

        $param['method'] = CheckoutApi_Client_Adapter_Constant::API_GET;
        $this->flushState();
        $uri = $this->getUriCustomer();
        $delimiter = '?';
        $createdAt = 'created=';

        if(isset($param['created_on'])) {
            $uri="{$uri}{$delimiter}{$createdAt}{$param['created_on']}|";
            $delimiter = '&';

        }else {
            if (isset($param['from_date'])) {
                $fromDate = time($param['from_date']);
                $uri = "{$uri}{$delimiter}{$createdAt}{$fromDate}";
                $delimiter = '&';
                $createdAt = '|';
            }

            if (isset($param['to_date'])) {
                $toDate = time($param['to_date']);
                $uri = "{$uri}{$createdAt}{$toDate}";
                $delimiter = '&';

            }
        }

        if(isset($param['count'])){

            $uri =  "{$uri}{$delimiter}count={$param['count']}";
            $delimiter = '&';
        }

        if(isset($param['offset'])){
            $uri =  "{$uri}{$delimiter}offset={$param['offset']}";
        }

        return $this->request( $uri ,$param,!$hasError);
    }
public function getListCustomer ( $ param ) { $ hasError = false ; $ param [ 'method' ] = CheckoutApi_Client_Adapter_Constant :: API_GET ; $ this -> flushState ( ) ; $ uri = $ this -> getUriCustomer ( ) ; $ delimiter = '?' ; $ createdAt = 'created=' ; if ( isset ( $ param [ 'created_on' ] ) ) { $ uri = "{$uri}{$delimiter}{$createdAt}{$param['created_on']}|" ; $ delimiter = '&' ; } else { if ( isset ( $ param [ 'from_date' ] ) ) { $ fromDate = time ( $ param [ 'from_date' ] ) ; $ uri = "{$uri}{$delimiter}{$createdAt}{$fromDate}" ; $ delimiter = '&' ; $ createdAt = '|' ; } if ( isset ( $ param [ 'to_date' ] ) ) { $ toDate = time ( $ param [ 'to_date' ] ) ; $ uri = "{$uri}{$createdAt}{$toDate}" ; $ delimiter = '&' ; } } if ( isset ( $ param [ 'count' ] ) ) { $ uri = "{$uri}{$delimiter}count={$param['count']}" ; $ delimiter = '&' ; } if ( isset ( $ param [ 'offset' ] ) ) { $ uri = "{$uri}{$delimiter}offset={$param['offset']}" ; } return $ this -> request ( $ uri , $ param , ! $ hasError ) ; }
Getting a list of customer
@param array $param payload param for getting list of customer.
@return CheckoutApi_Lib_RespondObj
@throws Exception
Simple Usage:
$param['count'] = 100 ;
$param['from_date'] = '09/30/2014' ;
$param['to_date'] = '10/02/2014' ;
$customerUpdate = $Api->getListCustomer($param);
Getting a list of customer