Difference between revisions of "PHP client - OpenKM 5.1"
From OpenKM Documentation
(Created page with 'Category: Webservices Guide Category:OKM Network') |
|||
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 14: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);
?>