Esempio n. 1
0
 public function bindAppApi($bindInfo, $conn)
 {
     $prismHost = $conn['host'];
     $key = $conn['key'];
     $secret = $conn['secret'];
     $requestParams = ['app_id' => $bindInfo['app_id'], 'api_id' => $bindInfo['api_id'], 'path' => '*'];
     $caller = new PrismLibAdminAppManager($prismHost, $key, $secret);
     return $caller->bind($requestParams);
 }
Esempio n. 2
0
<?php

require_once __DIR__ . '/../../../vendor/autoload.php';
$prismUrl = 'http://localhost:8080';
$adminKey = "tkhhgpfo";
$adminSecret = "47zwsqjtcj6d5svgpknq";
$params = array('app_id' => 'rshps42', 'api_id' => 'jxj2pzxz', 'path' => '*', 'limit_count' => 1001, 'limit_seconds' => 61);
$adminUserManager = new PrismLibAdminAppManager($prismUrl, $adminKey, $adminSecret);
$return = $adminUserManager->bind($params);
print_r($return);
//$client = new PrismClient('http://localhost:8080', 'key', 'secret');
//print_r($client);
Esempio n. 3
0
<?php

require_once __DIR__ . '/../../../vendor/autoload.php';
$prismUrl = 'http://localhost:8080';
$adminKey = "tkhhgpfo";
$adminSecret = "47zwsqjtcj6d5svgpknq";
//$params = array(
//    'app_id' => 'rshps42',
//    'api_id'=>'jxj2pzxz',
//    'path'=>'*',
//    'limit_count'=>1001,
//    'limit_seconds'=>61,
//);
$adminUserManager = new PrismLibAdminAppManager($prismUrl, $adminKey, $adminSecret);
$return = $adminUserManager->getList();
print_r($return);
//$client = new PrismClient('http://localhost:8080', 'key', 'secret');
//print_r($client);