public function get_link($reference) {
        $reference = unserialize(self::convert_to_valid_reference($reference));
        $shareinfo = $this->boxnetclient->share_file($reference->fileid, false);
        return $shareinfo->url;
    }
public function get_link($reference) {
        $reference = unserialize(self::convert_to_valid_reference($reference));
        $shareinfo = $this->boxnetclient->share_file($reference->fileid, false);
        return $shareinfo->url;
    }
public function get_link ( $ reference ) { $ reference = unserialize ( self :: convert_to_valid_reference ( $ reference ) ) ; $ shareinfo = $ this -> boxnetclient -> share_file ( $ reference -> fileid , false ) ; return $ shareinfo -> url ; }
Get a link to the file.

This returns the URL of the web view of the file. To generate this link the
file must be shared.

@param stdClass $reference Reference.
@return string URL.
Get a link to the file .