add page support to orders method
This commit is contained in:
parent
e15b87fd0f
commit
b00bbdae91
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user