<?php require_once __DIR__ . '/../../../vendor/autoload.php'; $prismUrl = 'http://localhost:8080'; $adminKey = "tkhhgpfo"; $adminSecret = "47zwsqjtcj6d5svgpknq"; $params = array('Id' => 'jxj2pzxz'); $adminUserManager = new PrismLibAdminApiManager($prismUrl, $adminKey, $adminSecret); $return = $adminUserManager->online($params); print_r($return); //$client = new PrismClient('http://localhost:8080', 'key', 'secret'); //print_r($client);
<?php require_once __DIR__ . '/../../../vendor/autoload.php'; $prismUrl = 'http://localhost:8080'; $adminKey = "tkhhgpfo"; $adminSecret = "47zwsqjtcj6d5svgpknq"; $adminUserManager = new PrismLibAdminApiManager($prismUrl, $adminKey, $adminSecret); $return = $adminUserManager->getList(null); print_r($return); //$client = new PrismClient('http://localhost:8080', 'key', 'secret'); //print_r($client);
private function _setApiOnline($apiInfo, $conn) { $host = $conn['host']; $key = $conn['key']; $secret = $conn['secret']; $requestParams = ['Id' => $apiInfo['Id']]; $caller = new PrismLibAdminApiManager($host, $key, $secret); return $caller->online($requestParams); }