private function triggerTweakwiseImport()
    {
        $apiImportUrl = $this->config->getApiImportUrl();
        if (empty($apiImportUrl)) {
            $this->log->debug('TW import not triggered, no api import url defined.');
            return;
        }

        try {
            $client = new HttpClient($apiImportUrl);
            $client->send();
            $this->log->debug('TW import triggered');
        } catch (HttpClient\Exception\ExceptionInterface $e) {
            $this->log->error(sprintf('Trigger TW import failed due to %s', $e->getMessage()));
        }
    }
private function triggerTweakwiseImport()
    {
        $apiImportUrl = $this->config->getApiImportUrl();
        if (empty($apiImportUrl)) {
            $this->log->debug('TW import not triggered, no api import url defined.');
            return;
        }

        try {
            $client = new HttpClient($apiImportUrl);
            $client->send();
            $this->log->debug('TW import triggered');
        } catch (HttpClient\Exception\ExceptionInterface $e) {
            $this->log->error(sprintf('Trigger TW import failed due to %s', $e->getMessage()));
        }
    }
private function triggerTweakwiseImport ( ) { $ apiImportUrl = $ this -> config -> getApiImportUrl ( ) ; if ( empty ( $ apiImportUrl ) ) { $ this -> log -> debug ( 'TW import not triggered, no api import url defined.' ) ; return ; } try { $ client = new HttpClient ( $ apiImportUrl ) ; $ client -> send ( ) ; $ this -> log -> debug ( 'TW import triggered' ) ; } catch ( HttpClient \ Exception \ ExceptionInterface $ e ) { $ this -> log -> error ( sprintf ( 'Trigger TW import failed due to %s' , $ e -> getMessage ( ) ) ) ; } }
Trigger TW import call if configured
Trigger TW import call if configured