03-24-2011 05:25 PM
03-28-2011 08:39 AM
http://localhost:8080/alfresco/service/slingshot/doclib/action/file/node/{$nodeRef}
nodeRef should be like = "workspace/SpacesStore/XXXXXXXXXXX"03-29-2011 04:44 PM
04-06-2011 11:42 AM
Is there a list of all the services/web scripts (or whatever) that are used by Alfresco Share?
<?php
$repositoryUrl = "http://localhost:8080/alfresco/api";
$userName = "admin";
$password = "admin";
$repository = new Repository($repositoryUrl);
$ticket = $repository->authenticate($userName, $password);
$session = $repository->createSession($ticket);
$spacesStore = new SpacesStore($session);
$nodeId = "0000-0000-00000-0000";
$RESTContent = new RESTContent($repository, $spacesStore, $session);
echo "<pre>";
print_r($RESTContent->DeleteNode($nodeId));
?>
04-07-2011 05:39 AM
Well , removeChild isnt implemented in the Alfresco Library right now, i would suggest you to do it via REST – Alfresco Share uses the WebScript:http://localhost:8080/alfresco/service/slingshot/doclib/action/file/node/{$nodeRef}
nodeRef should be like = "workspace/SpacesStore/XXXXXXXXXXX"
Just send a "DELETE" Method on the HTTP Request to this URL and it should be fine.
If you have now Idea how to speak to a REST Webservice in PHP , there are many good tutorials out there …. for example -> http://www.sematopia.com/2006/10/how-to-making-a-php-rest-client-to-call-rest-resources/
its an good implementation of the RESTClient Class, which can be really useful
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.