public function b2DownloadFileById($downloadURL, $fileId, $download = false, $metadataOnly = false)
    {
        $uri = $downloadURL.'/b2api/v1/b2_download_file_by_id?fileId='.urlencode($fileId);
        if (!$download) {
            return $uri;
        }
        $curl = $this->prepareCurl();
        $browser = new Browser($curl);
        $response = $metadataOnly ? $browser->head($uri) : $browser->get($uri);

        return new B2Response($response, false);
    }