You can use rest directly or use our sdk for it
http://wiki.openkm.com/index.php/Csharp_webservice_dll, in case you decide for our sdk the methods are:
Code: Select allByte[] getContent(String docPath, Boolean checkout);
Byte[] getContent(String token, String docPath, Boolean checkout);
Byte[] getContentByVersion(String docId, String versionId);
Byte[] getContentByVersion(String token, String docId, String versionId);
To take a look at rest services,
http://demo.openkm.com/OpenKM/services/ ... ment?_wadl ( user1 / pass1 ) you also got there a method called getContent with a query string parameter called docId ( what can be path or uuid )
Code: Select all<resource path="getContent">
<method name="GET">
<request>
<param name="docId" style="query" type="xs:string"/>
</request>
<response>
<representation mediaType="application/octet-stream"/>
</response>
</method>
</resource>