@@ -8,19 +8,19 @@ |
||
8 | 8 | * Change the host, login, password below with your own. |
9 | 9 | */ |
10 | 10 | |
11 | - $host = ""; |
|
12 | - $login = ""; |
|
13 | - $password = ""; |
|
11 | + $host = ""; |
|
12 | + $login = ""; |
|
13 | + $password = ""; |
|
14 | 14 | |
15 | - $client = new PleskApiClient($host); |
|
16 | - $client->setCredentials($login, $password); |
|
15 | + $client = new PleskApiClient($host); |
|
16 | + $client->setCredentials($login, $password); |
|
17 | 17 | |
18 | - try { |
|
19 | - $server = $client->server()->getGeneralInfo(); |
|
20 | - // Show result |
|
21 | - echo "<pre>"; |
|
22 | - print_r($server); |
|
23 | - echo "</pre>"; |
|
24 | - } catch (\PleskX\API\Client\Exception $e) { |
|
25 | - echo 'Please check your credentials. Make sure to change the $host, $login, and $password variables in this file.'; |
|
26 | - } |
|
18 | + try { |
|
19 | + $server = $client->server()->getGeneralInfo(); |
|
20 | + // Show result |
|
21 | + echo "<pre>"; |
|
22 | + print_r($server); |
|
23 | + echo "</pre>"; |
|
24 | + } catch (\PleskX\API\Client\Exception $e) { |
|
25 | + echo 'Please check your credentials. Make sure to change the $host, $login, and $password variables in this file.'; |
|
26 | + } |
@@ -8,19 +8,19 @@ |
||
8 | 8 | * Change the host, login, password below with your own. |
9 | 9 | */ |
10 | 10 | |
11 | - $host = ""; |
|
12 | - $login = ""; |
|
13 | - $password = ""; |
|
11 | + $host = ""; |
|
12 | + $login = ""; |
|
13 | + $password = ""; |
|
14 | 14 | |
15 | - $client = new PleskApiClient($host); |
|
16 | - $client->setCredentials($login, $password); |
|
15 | + $client = new PleskApiClient($host); |
|
16 | + $client->setCredentials($login, $password); |
|
17 | 17 | |
18 | - try { |
|
19 | - $packages = $client->serviceplan()->getAll(); |
|
18 | + try { |
|
19 | + $packages = $client->serviceplan()->getAll(); |
|
20 | 20 | // Show result |
21 | - echo "<pre>"; |
|
22 | - print_r($packages); |
|
23 | - echo "</pre>"; |
|
24 | - } catch (\PleskX\API\Client\Exception $e) { |
|
25 | - echo 'Please check your credentials. Make sure to change the $host, $login, and $password variables in this file.'; |
|
26 | - } |
|
21 | + echo "<pre>"; |
|
22 | + print_r($packages); |
|
23 | + echo "</pre>"; |
|
24 | + } catch (\PleskX\API\Client\Exception $e) { |
|
25 | + echo 'Please check your credentials. Make sure to change the $host, $login, and $password variables in this file.'; |
|
26 | + } |