1
0
mirror of synced 2024-11-25 06:46:07 +03:00

add page support to orders method

This commit is contained in:
tikijian 2014-09-19 15:21:26 +04:00
parent e15b87fd0f
commit b00bbdae91

View File

@ -151,11 +151,11 @@ class RestApi
* @param int $offset - сдвиг * @param int $offset - сдвиг
* @return array - массив заказов * @return array - массив заказов
*/ */
public function orders($filter = array(), $limit = 50, $offset = 0) public function orders($filter = array(), $limit = 50, $page = 1)
{ {
$url = $this->apiUrl.'orders'; $url = $this->apiUrl.'orders';
$this->parameters['limit'] = $limit; $this->parameters['limit'] = $limit;
$this->parameters['offset'] = $offset; $this->parameters['page'] = $page;
$this->parameters['filter'] = $filter; $this->parameters['filter'] = $filter;