Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

Problem with add user using HTTP request

$
0
0

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?


Viewing all articles
Browse latest Browse all 10742

Trending Articles