src/Client.php
public function sendDownload( string $url, string $destinationFile, array $options = [] )
   {

      $options[ 'url' ]    = $this->_buildUrl( $url );
      $options[ 'toFile' ] = $destinationFile;

      return $this->_sendRequest( $options );

   }
public function sendDownload( string $url, string $destinationFile, array $options = [] )
   {

      $options[ 'url' ]    = $this->_buildUrl( $url );
      $options[ 'toFile' ] = $destinationFile;

      return $this->_sendRequest( $options );

   }
public function sendDownload ( string $ url , string $ destinationFile , array $ options = [ ] ) { $ options [ 'url' ] = $ this -> _buildUrl ( $ url ) ; $ options [ 'toFile' ] = $ destinationFile ; return $ this -> _sendRequest ( $ options ) ; }
Downloads file to specified destination file.

If no external error handler is defined, on error here an ClientException is thrown

@param  string $url             The request url.
@param  string $destinationFile file destination.
@param  array  $options    Known options are: headers, referer, timeout, attemptsMax, attemptsDelay
@return boolean                 Return TRUE on success, FALSE otherwise
Downloads file to specified destination file .