src/GoogleDriveAdapter.php
public function getUrl($path)
    {
        if ($this->publish($path)) {
            $obj = $this->getFileObject($path);
            if ($url = $obj->getWebContentLink()) {
                return str_replace('export=download', 'export=media', $url);
            }
            if ($url = $obj->getWebViewLink()) {
                return $url;
            }
        }
        return false;
    }
public function getUrl($path)
    {
        if ($this->publish($path)) {
            $obj = $this->getFileObject($path);
            if ($url = $obj->getWebContentLink()) {
                return str_replace('export=download', 'export=media', $url);
            }
            if ($url = $obj->getWebViewLink()) {
                return $url;
            }
        }
        return false;
    }
public function getUrl ( $ path ) { if ( $ this -> publish ( $ path ) ) { $ obj = $ this -> getFileObject ( $ path ) ; if ( $ url = $ obj -> getWebContentLink ( ) ) { return str_replace ( 'export=download' , 'export=media' , $ url ) ; } if ( $ url = $ obj -> getWebViewLink ( ) ) { return $ url ; } } return false ; }
Get contents parmanent URL

@param string $path
itemId path

@return string|false
Get contents parmanent URL