Start a new topic

how to get lib_id for add user

Hello,


I want to add a user in kotobee using API.


When I call the kotobee API then it displays below the message.

{"error":"s_wrongUser"}


I think I am giving the wrong lib_id so can you please how and from where I can get the lib_id.


Thanks

1 Comment

This is an example on how to do it using POST variables with PHP:


$curl = curl_init();curl_setopt_array($curl, array(  CURLOPT_RETURNTRANSFER => 1,  CURLOPT_URL => "https://www.kotobee.com/api/v1/user/add",  CURLOPT_RETURNTRANSFER => true,  CURLOPT_SSL_VERIFYPEER => false,  CURLOPT_CUSTOMREQUEST => "POST",  CURLOPT_POST => true));$data = array();$data["serial"] = "1234-5678-9999-9999";$data["email"] = "newuser@gmail.com";$data["pwd"] = "mysecretpwd";   //must be at least 6 characters$data["libid"] = "42";$data["active"] = "1";curl_setopt($curl, CURLOPT_POSTFIELDS, $data);$resp = curl_exec($curl);//echo $resp;     //in case you want to view the resultcurl_close($curl);


Login or Signup to post a comment