public function getMarket($period, $page)
{
$items = [];
$response = (array)@json_decode($this->request('GET', 'https://site.ru/json/my?duration=' . $period . '&page=' . $page)['body'], true);
foreach ($response as $key => $item) {
$item['user'] = $this->getUser($item['userId']);
$items[] = new MyItem($item);
}
return $items;
}