Explorar o código

fix url building

andre %!s(int64=3) %!d(string=hai) anos
pai
achega
8ef300214b
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      api/test.php

+ 3 - 3
api/test.php

@@ -74,7 +74,7 @@ function parse_args($argv){
 // Constructor //
 /////////////////
 
-$cwp7 = new cwp7_Admin($cwp7URL, $cwp7Token);
+$cwp7 = new cwp7_Admin($cwp7Host, $cwp7Token);
 $r = $cwp7->constructorSuccess();
 if(isset($r['error_msg'])) {
 	echo 'Error : cannot construct :-(' . PHP_EOL;
@@ -90,9 +90,9 @@ if($action == 'gaa')
 {
     $r = $cwp7->getAllAccounts();
 	if($r['status'] == 'Error') {
-        echo 'Error : could not fetch list of accounts on '. $cwp7URL . ' :-(' . PHP_EOL;
+        echo 'Error : could not fetch list of accounts on '. $cwp7Host . ' :-(' . PHP_EOL;
 	} else {
-        echo 'OK : got a list of '. count($r['msj']) . ' accounts on ' . $cwp7URL . ' :-)' . PHP_EOL;
+        echo 'OK : got a list of '. count($r['msj']) . ' accounts on ' . $cwp7Host . ' :-)' . PHP_EOL;
     }
 	print_r($r);
 }