/** * Executes API request to export items from shop and parses returned xml response to array * * @param array $params * @param string $languageName * @return array|string * @throws \Exception */ protected function executeApiExport($params = [], $languageName = 'english') { if (!array_key_exists('shopkey', $params)) { $params['shopkey'] = $this->getShopApiKey($languageName); } $url = $this->getShopExportUrl() . http_build_query($params); return XmlParser::getInstance()->parse($url); }