Hi Everyone,
I have written PHP script using class.openfire.userservice.php class file, But I am getting Error: RequestNotAuthorised error. Here is my code
$user = new UserService();
$param = array(
"username"=>"craig",
"password"=>"123",
"name"=>"craig",
"email"=>"craigmorris02@gmail.com"
);
echo $result = $user->api("add",$param);
I have installed User Service Plugin on my openfire server and also enabled it, Double checked my Secret and its correct in my code. Also white listed my Own IP and server IP both.
Is there anything I am missing?