src/PutIO/Engines/PutIO/TransfersEngine.php
public function add($url, $parentID = 0, $extract = \false, $callbackUrl = '')
    {
        $data = [
            'url'            => $url,
            'save_parent_id' => $parentID,
            'extract'        => ($extract ? 'True' : 'False'),
            'callback_url'   => $callbackUrl
        ];

        return $this->post('transfers/add', $data, \false);
    }
public function add($url, $parentID = 0, $extract = \false, $callbackUrl = '')
    {
        $data = [
            'url'            => $url,
            'save_parent_id' => $parentID,
            'extract'        => ($extract ? 'True' : 'False'),
            'callback_url'   => $callbackUrl
        ];

        return $this->post('transfers/add', $data, \false);
    }
public function add ( $ url , $ parentID = 0 , $ extract = \ false , $ callbackUrl = '' ) { $ data = [ 'url' => $ url , 'save_parent_id' => $ parentID , 'extract' => ( $ extract ? 'True' : 'False' ) , 'callback_url' => $ callbackUrl ] ; return $ this -> post ( 'transfers/add' , $ data , \ false ) ; }
Adds a new transfer to the queue.

@param string $url          URL of the file/torrent
@param int    $parentID     ID of the target folder. 0 = root
@param bool   $extract      Extract file when download complete
@param string $callbackUrl  put.io will POST the metadata of the file to
the given URL when file is ready.
@return array
Adds a new transfer to the queue .