/** * @return mixed * @throws OtomotoException */ public function advertQuickList() { try { $result = $this->client->AdvertQuickList(array('request' => array('Username' => $this->username, 'AutorizationKey' => $this->generateKey(), 'ClientId' => array($this->clientId)))); if (!$result->AdvertQuickListResult->IsOk) { throw new OtomotoException($result->EnumListResult->Message); } return $result->AdvertQuickListResult->Advert->WSAdvertResult; } catch (\Exception $e) { throw new OtomotoException($e->getMessage(), $e->getCode()); } }