plesk / api-php-lib

PHP library for Plesk XML-RPC interface
Other
139 stars 80 forks source link

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

Closed mister97 closed 1 year ago

mister97 commented 1 year ago

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',
]);
mister97 commented 1 year ago

I figured this one out silly me.