Resource Description for File

Properties for File

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
compressed bool
content Content
fileIdentifier string
fileMetadata string
fileName string
fileSize int
mimeType string
url string

SDK Example for PHP

<?PHP

use Arbor\Api\Gateway\RestGateway;
use Arbor\Model\ModelBase;
use Arbor\Model\File;

ModelBase::setDefaultGateway(
    new RestGateway(
        "https://my-school.arbor.sc/rest-v2",
        "my.username@my-school.arbor.sc",
        "3bh54435v3gh45"
    )
);

$file = File::retrieve(5433);

$content = $file->getContent();
$url = $file->getUrl();
$fileSize = $file->getFileSize();
$mimeType = $file->getMimeType();
$fileIdentifier = $file->getFileIdentifier();
$fileMetadata = $file->getFileMetadata();
$fileName = $file->getFileName();
$compressed = $file->getCompressed();

 

Related Resources

See also: Content