<?php require_once __DIR__ . '/../../../vendor/autoload.php'; $prismUrl = 'http://localhost:8080'; $adminKey = "wvaxmnjm"; $adminSecret = "5med5cp5o5gyvv4plg5x"; $adminUserManager = new PrismLibDeveloperAppManager($prismUrl, $adminKey, $adminSecret); $return = $adminUserManager->getList(); print_r($return);
<?php require_once __DIR__ . '/../../../vendor/autoload.php'; $prismUrl = 'http://localhost:8080'; $adminKey = "wvaxmnjm"; $adminSecret = "5med5cp5o5gyvv4plg5x"; $params = array('id' => null, 'name' => 'cc', 'desc' => 'cccc'); $adminUserManager = new PrismLibDeveloperAppManager($prismUrl, $adminKey, $adminSecret); $return = $adminUserManager->create($params); print_r($return); //$client = new PrismClient('http://localhost:8080', 'key', 'secret'); //print_r($client); /** * return info: * ➜ app git:(master) ✗ php create.php * Array * ( * [Id] => qmc4d5y * [Guid] => default-qmc4d5y * [AuthGroup] => * [DomainId] => default * [SelfBinding] => * [Name] => cc * [Author] => * [AuthorUrl] => * [Logo] => * [ApiJsonUrl] => * [NotifyListen] => * [NotifyPublish] => * [MemberId] => g3tearm2 * [Summary] => cccc
<?php require_once __DIR__ . '/../../../vendor/autoload.php'; $prismUrl = 'http://localhost:8080'; $adminKey = "wvaxmnjm"; $adminSecret = "5med5cp5o5gyvv4plg5x"; $params = array('app_id' => 'rshps42'); $adminUserManager = new PrismLibDeveloperAppManager($prismUrl, $adminKey, $adminSecret); $return = $adminUserManager->info($params); print_r($return);
private function _createApp($appInfo, $conn) { $host = $conn['host']; $key = $conn['key']; $secret = $conn['secret']; $requestParams = ['name' => $appInfo['name']]; $caller = new PrismLibDeveloperAppManager($host, $key, $secret); return $caller->create($requestParams); }
<?php require_once __DIR__ . '/../../../vendor/autoload.php'; $prismUrl = 'http://localhost:8080'; $adminKey = "wvaxmnjm"; $adminSecret = "5med5cp5o5gyvv4plg5x"; $params = array('app_id' => 'qmc4d5y'); $adminUserManager = new PrismLibDeveloperAppManager($prismUrl, $adminKey, $adminSecret); $return = $adminUserManager->delete($params); print_r($return);