Пример #1
0
<?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);
Пример #2
0
<?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
Пример #3
0
<?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);
Пример #4
0
 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);
 }
Пример #5
0
<?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);