$import->getRestExperience(), 'licensekey' => $this->configuration->getLicenseKey(), 'type' => $this->configuration->getRestType(), 'mode' => $this->configuration->getRestMode(), 'limit' => $this->configuration->getRestLimit(), 'template' => $this->configuration->getRestTemplate(), 'q' => $import->getSearchQuery(), ]; $parameter = array_filter($parameter); $url = new Uri($this->configuration->getRestUrl()); $url = $url->withQuery(http_build_query($parameter)); return (string)$url; } }