Difference between revisions of "PHP client - OpenKM 5.1"

From OpenKM Documentation
Jump to: navigation, search
 
Line 1: Line 1:
 +
== 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>
 +
 
[[Category: Webservices Guide]]
 
[[Category: Webservices Guide]]
 
[[Category:OKM Network]]
 
[[Category:OKM Network]]

Revision as of 15:07, 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);
?>