1
0
mirror of synced 2024-11-22 05:16:07 +03:00

customers method fix

This commit is contained in:
Grisha Pomadchin 2014-07-11 17:19:46 +04:00
parent e5215e7fcb
commit a53565c8fd

View File

@ -174,9 +174,9 @@ class RestApi
public function customers($phone = null, $email = null, $fio = null, $limit = 200, $offset = 0) public function customers($phone = null, $email = null, $fio = null, $limit = 200, $offset = 0)
{ {
$url = $this->apiUrl.'customers'; $url = $this->apiUrl.'customers';
$this->parameters['phone'] = $phone; if($phone) $this->parameters['phone'] = $phone;
$this->parameters['email'] = $email; if($email) $this->parameters['email'] = $email;
$this->parameters['fio'] = $fio; if($fio) $this->parameters['fio'] = $fio;
$this->parameters['limit'] = $limit; $this->parameters['limit'] = $limit;
$this->parameters['offset'] = $offset; $this->parameters['offset'] = $offset;