Problem using User Provisioning API

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: DEBUG OUTPUT:

Why this is happening?