public function download($pathToFile, $name = null, array $headers = array())
	{
		$response = StaticClient::get($this->offsetGet('_downloadURL'), array(
			'headers' => $headers,
			'timeout' => $this->timeout,
			'save_to' => $pathToFile,
		));

		file_put_contents($pathToFile, $response->getBody()->getStream());
	}
public function download($pathToFile, $name = null, array $headers = array())
	{
		$response = StaticClient::get($this->offsetGet('_downloadURL'), array(
			'headers' => $headers,
			'timeout' => $this->timeout,
			'save_to' => $pathToFile,
		));

		file_put_contents($pathToFile, $response->getBody()->getStream());
	}
public function download ( $ pathToFile , $ name = null , array $ headers = array ( ) ) { $ response = StaticClient :: get ( $ this -> offsetGet ( '_downloadURL' ) , array ( 'headers' => $ headers , 'timeout' => $ this -> timeout , 'save_to' => $ pathToFile , ) ) ; file_put_contents ( $ pathToFile , $ response -> getBody ( ) -> getStream ( ) ) ; }
Download the file to a local path.

@param  string  $pathToFile,
@param  string  $name
@param  headers $array
@return void
Download the file to a local path .