I have User Service API enabled and whenever I go to my url it doesn’t add the user to my database. I’m using IP address to access it.
I’m trying to add user to database by accessing this URL through cURL.
It’s just not adding the user to the database whenever I go to the URL.
There isn’t anything wrong with my cURL script either.
<?php $url = "http://22.214.171.124:9090/plugins/userService/userservice?type=add&secret=rCSA5xYhfirstname.lastname@example.org"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $params); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($ch); curl_close($ch); ?>