public function addUrl($url, $niceName = null, $priority = -100, $category = '', $postProcessing = 3, $script = '')
    {
        $params = [
            'name'     => $url,
            'priority' => $priority,
            'category' => $category,
            'pp'       => $postProcessing,
            'script'   => $script
        ];
        if ($niceName) {
            $params['nzbname'] = $niceName;
        }

        $url = $this->buildUrl('addurl', $params);
        $request = $this->guzzle->request('GET', $url);

        return json_decode($request->getBody(), true);
    }
public function addUrl($url, $niceName = null, $priority = -100, $category = '', $postProcessing = 3, $script = '')
    {
        $params = [
            'name'     => $url,
            'priority' => $priority,
            'category' => $category,
            'pp'       => $postProcessing,
            'script'   => $script
        ];
        if ($niceName) {
            $params['nzbname'] = $niceName;
        }

        $url = $this->buildUrl('addurl', $params);
        $request = $this->guzzle->request('GET', $url);

        return json_decode($request->getBody(), true);
    }
public function addUrl ( $ url , $ niceName = null , $ priority = - 100 , $ category = '' , $ postProcessing = 3 , $ script = '' ) { $ params = [ 'name' => $ url , 'priority' => $ priority , 'category' => $ category , 'pp' => $ postProcessing , 'script' => $ script ] ; if ( $ niceName ) { $ params [ 'nzbname' ] = $ niceName ; } $ url = $ this -> buildUrl ( 'addurl' , $ params ) ; $ request = $ this -> guzzle -> request ( 'GET' , $ url ) ; return json_decode ( $ request -> getBody ( ) , true ) ; }
Adds a file to the queue via the given link to the file

@param string      $url
@param string|null $niceName
@param int         $priority
@param string      $category
@param int         $postProcessing
@param string      $script

@return array
Adds a file to the queue via the given link to the file