04-08-2011 03:14 PM
04-09-2011 01:34 PM
$Version = new RESTVersion($repository,$store,$session);
$VersionResponse = $Version->GetVersionInfo($Node->getId());
04-13-2011 05:52 PM
04-14-2011 07:02 AM
$repository = new Repository($repositoryUrl);
$ticket = $repository->authenticate($userName, $password);
$session = $repository->createSession($ticket);
// Create a reference to the 'SpacesStore'
$spacesStore = new SpacesStore($session);
$nodeId = "0000-000000-0000-00-000";
$Node = $session->getNode($spacesStore, $nodeId);
if ($Node != null) {
echo "GET SOAP VERSIONS:";
$VersionHistory = $Node->getVersionHistory();
$Versions = $VersionHistory->getVersions();
if (count($Versions) > 0) {
// GET CONTENT FOREACH VERSION
foreach ($Versions as $VersionLabel => $Version) {
$Content = $Version->cm_content;
if ($Content instanceof ContentData) {
echo "Version: $VersionLabel => Filesize: {$Content->getSize()} | Encoding: {$Content->getEncoding()} <br>";
$Data = $Content->getContent();
}
}
}
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.