Hi this is my first post Iâm new using nextcloud and I have an inconvenient one when creating user from my script.
This is my script:
require (âvendor/autoload.phpâ);
$client = new \GuzzleHttp\Client();
$res = $client->request(âPOSTâ, âhttp://admin:adminpass@localhost/ocs/v1.php/cloud/users -d userid=âFrankâ -d password=âfrankspasswordââ -H âContent-Type: application/x-www-form-urlencodedâ -H âOCS-APIRequest:trueââ );
echo $res->getBody();
and he always gives me this mistake:
failure 998 Invalid query, please check the syntax. API specifications are here: http://www.freedesktop.org/wiki/Specifications/open-collaboration-services. DEBUG OUTPUT:
Why this is happening?