plesk/api-php-lib

Class "\PleskX\Api\Operator\Customer" not found

mister97 opened this issue · 1 comments

Hello, Not sure what I'm doing wrong here but even trying to use the example in the readme file I can't get it to work. Thanks for any help you can provide.
Here's the code:

require_once $path.'/api-php-lib/src/Api/Client.php';
use PleskX\Api\Client;

$host = '***';
$login = '***';
$password = '***';

$client = new \PleskX\Api\Client($host);
$client->setCredentials($login, $password);

$client->customer()->create([
    'cname' => 'Plesk',
    'pname' => 'John Smith',
    'login' => 'john',
    'passwd' => 'secret',
    'email' => 'john@smith.com',
]);

I figured this one out silly me.