<?php require_once __DIR__ . '/../../../vendor/autoload.php'; $prismUrl = 'http://*****:*****@qq.com'); $adminUserManager = new PrismLibAdminUserManager($prismUrl, $adminKey, $adminSecret); $return = $adminUserManager->apiprovider($params); print_r($return); //$client = new PrismClient('http://localhost:8080', 'key', 'secret'); //print_r($client);
<?php require_once __DIR__ . '/../../../vendor/autoload.php'; $prismUrl = 'http://*****:*****@qq.com'); $adminUserManager = new PrismLibAdminUserManager($prismUrl, $adminKey, $adminSecret); $return = $adminUserManager->disable($params); print_r($return); //$client = new PrismClient('http://localhost:8080', 'key', 'secret'); //print_r($client);
<?php require_once __DIR__ . '/../../../vendor/autoload.php'; $prismUrl = 'http://*****:*****@qq.com'); $adminUserManager = new PrismLibAdminUserManager($prismUrl, $adminKey, $adminSecret); $return = $adminUserManager->info($params); print_r($return); //$client = new PrismClient('http://localhost:8080', 'key', 'secret'); //print_r($client);
<?php require_once __DIR__ . '/../../../vendor/autoload.php'; $prismUrl = 'http://*****:*****@qq.com'); $adminUserManager = new PrismLibAdminUserManager($prismUrl, $adminKey, $adminSecret); $return = $adminUserManager->active($params); print_r($return); //$client = new PrismClient('http://localhost:8080', 'key', 'secret'); //print_r($client);
<?php require_once __DIR__ . '/../../../vendor/autoload.php'; $prismUrl = 'http://*****:*****@qq.com', 'password' => 'xinxin123', 'summary' => '测试测试'); $adminUserManager = new PrismLibAdminUserManager($prismUrl, $adminKey, $adminSecret); $return = $adminUserManager->create($newProvider); print_r($return); //$client = new PrismClient('http://localhost:8080', 'key', 'secret'); //print_r($client);
/** * 激活用户,激活的用户可以创建app了 * * @params userinfo array('email'=>'') * @params conn array('host'=>'', 'key'=>'', 'secret'=>'') * * @return Guid * @return Key * @return Secret * @return ClientID * @return Notes * @return DomainID * @return Meta * @return CreateTime * @return Expired * @return NotifyPushUrl */ private function _getUserInfo($userInfo, $conn) { $prismHost = $conn['host']; $key = $conn['key']; $secret = $conn['secret']; $requestParams = ['email' => $userInfo['email']]; $caller = new PrismLibAdminUserManager($prismHost, $key, $secret); return $caller->info($requestParams); }