As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
$Version = new RESTVersion($repository,$store,$session); $VersionResponse = $Version->GetVersionInfo($Node->getId());
$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(); } } } }