Difference between revisions of "PHP client - OpenKM 5.1"
From OpenKM Documentation
Line 1: | Line 1: | ||
== Authentication == | == Authentication == | ||
+ | <source lang="php"> | ||
+ | <?php | ||
+ | $OKMAuth = new SoapClient('http://localhost:8080/OpenKM/OKMAuth?wsdl'); | ||
+ | $token = $OKMAuth->login('okmAdmin','admin'); | ||
+ | echo "Token: ".$token; | ||
+ | $OKMAuth->logout($token); | ||
+ | ?> | ||
+ | </source> | ||
+ | |||
+ | |||
+ | == List documents == | ||
+ | |||
+ | <source lang="php"> | ||
+ | <?php | ||
+ | $OKMAuth = new SoapClient('http://localhost:8080/OpenKM/OKMAuth?wsdl'); | ||
+ | $token = $OKMAuth->login('okmAdmin','admin'); | ||
+ | echo "Token: ".$token; | ||
+ | $OKMAuth->logout($token); | ||
+ | ?> | ||
+ | </source> | ||
+ | |||
+ | == Create document == | ||
+ | <source lang="php"> | ||
+ | <?php | ||
+ | $OKMAuth = new SoapClient('http://localhost:8080/OpenKM/OKMAuth?wsdl'); | ||
+ | $token = $OKMAuth->login('okmAdmin','admin'); | ||
+ | echo "Token: ".$token; | ||
+ | $OKMAuth->logout($token); | ||
+ | ?> | ||
+ | </source> | ||
+ | |||
+ | == List folders == | ||
+ | <source lang="php"> | ||
+ | <?php | ||
+ | $OKMAuth = new SoapClient('http://localhost:8080/OpenKM/OKMAuth?wsdl'); | ||
+ | $token = $OKMAuth->login('okmAdmin','admin'); | ||
+ | echo "Token: ".$token; | ||
+ | $OKMAuth->logout($token); | ||
+ | ?> | ||
+ | </source> | ||
+ | |||
+ | == Create folder == | ||
<source lang="php"> | <source lang="php"> | ||
<?php | <?php |
Revision as of 14:10, 8 March 2010
Authentication
<?php
$OKMAuth = new SoapClient('http://localhost:8080/OpenKM/OKMAuth?wsdl');
$token = $OKMAuth->login('okmAdmin','admin');
echo "Token: ".$token;
$OKMAuth->logout($token);
?>
List documents
<?php
$OKMAuth = new SoapClient('http://localhost:8080/OpenKM/OKMAuth?wsdl');
$token = $OKMAuth->login('okmAdmin','admin');
echo "Token: ".$token;
$OKMAuth->logout($token);
?>
Create document
<?php
$OKMAuth = new SoapClient('http://localhost:8080/OpenKM/OKMAuth?wsdl');
$token = $OKMAuth->login('okmAdmin','admin');
echo "Token: ".$token;
$OKMAuth->logout($token);
?>
List folders
<?php
$OKMAuth = new SoapClient('http://localhost:8080/OpenKM/OKMAuth?wsdl');
$token = $OKMAuth->login('okmAdmin','admin');
echo "Token: ".$token;
$OKMAuth->logout($token);
?>
Create folder
<?php
$OKMAuth = new SoapClient('http://localhost:8080/OpenKM/OKMAuth?wsdl');
$token = $OKMAuth->login('okmAdmin','admin');
echo "Token: ".$token;
$OKMAuth->logout($token);
?>