public function getFileRevisionDownloadUrl(
        LibraryType $library,
        DirectoryItem $dirItem,
        FileHistoryItem $fileHistoryItem
    ) {
        $url = $this->client->getConfig('base_uri')
            . '/repos/'
            . $library->id
            . '/file/revision/'
            . '?p=' . $this->urlEncodePath($dirItem->path . $dirItem->name)
            . '&commit_id=' . $fileHistoryItem->id;

        $response = $this->client->request('GET', $url);

        return preg_replace("/\"/", '', (string)$response->getBody());
    }
public function getFileRevisionDownloadUrl(
        LibraryType $library,
        DirectoryItem $dirItem,
        FileHistoryItem $fileHistoryItem
    ) {
        $url = $this->client->getConfig('base_uri')
            . '/repos/'
            . $library->id
            . '/file/revision/'
            . '?p=' . $this->urlEncodePath($dirItem->path . $dirItem->name)
            . '&commit_id=' . $fileHistoryItem->id;

        $response = $this->client->request('GET', $url);

        return preg_replace("/\"/", '', (string)$response->getBody());
    }
public function getFileRevisionDownloadUrl ( LibraryType $ library , DirectoryItem $ dirItem , FileHistoryItem $ fileHistoryItem ) { $ url = $ this -> client -> getConfig ( 'base_uri' ) . '/repos/' . $ library -> id . '/file/revision/' . '?p=' . $ this -> urlEncodePath ( $ dirItem -> path . $ dirItem -> name ) . '&commit_id=' . $ fileHistoryItem -> id ; $ response = $ this -> client -> request ( 'GET' , $ url ) ; return preg_replace ( "/\"/" , '' , ( string ) $ response -> getBody ( ) ) ; }
Get file revision download URL

@param LibraryType     $library         Source library object
@param DirectoryItem   $dirItem         Item instance
@param FileHistoryItem $fileHistoryItem FileHistory item instance

@return Response
@throws \GuzzleHttp\Exception\GuzzleException
Get file revision download URL