src/FlexiPeeHP/Priloha.php
public static function getAttachment($attachmentID,$options = [])
    {
        $result     = null;
        $downloader = new Priloha($attachmentID,$options);
        if ($downloader->lastResponseCode == 200) {

            $downloader->doCurlRequest(self::getDownloadURL($downloader), 'GET');
            if ($downloader->lastResponseCode == 200) {
                $result = $downloader->lastCurlResponse;
            }
        }
        return $result;
    }
public static function getAttachment($attachmentID,$options = [])
    {
        $result     = null;
        $downloader = new Priloha($attachmentID,$options);
        if ($downloader->lastResponseCode == 200) {

            $downloader->doCurlRequest(self::getDownloadURL($downloader), 'GET');
            if ($downloader->lastResponseCode == 200) {
                $result = $downloader->lastCurlResponse;
            }
        }
        return $result;
    }
public static function getAttachment ( $ attachmentID , $ options = [ ] ) { $ result = null ; $ downloader = new Priloha ( $ attachmentID , $ options ) ; if ( $ downloader -> lastResponseCode == 200 ) { $ downloader -> doCurlRequest ( self :: getDownloadURL ( $ downloader ) , 'GET' ) ; if ( $ downloader -> lastResponseCode == 200 ) { $ result = $ downloader -> lastCurlResponse ; } } return $ result ; }
Gives you attachment body as return value

@param int   $attachmentID
@param array $options      Additional Connection Options

@return string
Gives you attachment body as return value