src/Keboola/Writer/GoodData/Client.php
public function getJobs($writerId, $since = null, $until = null)
    {
        $url = parse_url($this->getBaseUrl());
        $componentName = substr($url['path'], 1);
        $url = "https://{$url['host']}/queue/jobs?component={$componentName}&q=params.writerId={$writerId}";
        if ($since) {
            $url .= '&since=' . urlencode($since);
        }
        if ($until) {
            $url .= '&until=' . urlencode($until);
        }
        return $this->get($url)->send()->json();
    }
public function getJobs($writerId, $since = null, $until = null)
    {
        $url = parse_url($this->getBaseUrl());
        $componentName = substr($url['path'], 1);
        $url = "https://{$url['host']}/queue/jobs?component={$componentName}&q=params.writerId={$writerId}";
        if ($since) {
            $url .= '&since=' . urlencode($since);
        }
        if ($until) {
            $url .= '&until=' . urlencode($until);
        }
        return $this->get($url)->send()->json();
    }
public function getJobs ( $ writerId , $ since = null , $ until = null ) { $ url = parse_url ( $ this -> getBaseUrl ( ) ) ; $ componentName = substr ( $ url [ 'path' ] , 1 ) ; $ url = "https://{$url['host']}/queue/jobs?component={$componentName}&q=params.writerId={$writerId}" ; if ( $ since ) { $ url .= '&since=' . urlencode ( $ since ) ; } if ( $ until ) { $ url .= '&until=' . urlencode ( $ until ) ; } return $ this -> get ( $ url ) -> send ( ) -> json ( ) ; }
Return list of jobs for given writerId
@param $writerId
@param null $since
@param null $until
@return mixed
Return list of jobs for given writerId