Example #1
0
<?php

require_once __DIR__ . '/../../../vendor/autoload.php';
$prismUrl = 'http://localhost:8080';
$adminKey = "wvaxmnjm";
$adminSecret = "5med5cp5o5gyvv4plg5x";
$params = array('url' => 'http://localhost/prism-lib/tests/developer/api/a.json');
$adminUserManager = new PrismLibDeveloperApiManager($prismUrl, $adminKey, $adminSecret);
$return = $adminUserManager->import($params);
print_r($return);
/*
Array
(
    [apis] => Array
    (
        [0] => Array
        (
            [Id] => vxyrtvmj
            [Guid] => default-vxyrtvmj
            [LinkedResId] =>
            [Url] => http://localhost/prism-lib/tests/developer/api/a.json
            [BackendUrl] =>
            [DomainId] => default
            [MemberId] => g3tearm2
            [LastMemberId] =>
            [Path] =>
            [Online] =>
            [Appling] =>
            [ApplingResult] =>
            [IsLocal] =>
            [IsLinked] =>
Example #2
0
<?php

require_once __DIR__ . '/../../../vendor/autoload.php';
$prismUrl = 'http://localhost:8080';
$adminKey = "wvaxmnjm";
$adminSecret = "5med5cp5o5gyvv4plg5x";
$params = array('url' => 'http://localhost/prism-lib/tests/developer/api/after.json');
$adminUserManager = new PrismLibDeveloperApiManager($prismUrl, $adminKey, $adminSecret);
$return = $adminUserManager->refresh($params);
print_r($return);
Example #3
0
<?php

require_once __DIR__ . '/../../../vendor/autoload.php';
$prismUrl = 'http://localhost:8080';
$adminKey = "wvaxmnjm";
$adminSecret = "5med5cp5o5gyvv4plg5x";
$params = array('Id' => 'jxj2pzxz', 'key' => 'token', 'value' => 'fewfewfew');
$adminUserManager = new PrismLibDeveloperApiManager($prismUrl, $adminKey, $adminSecret);
$return = $adminUserManager->get($params);
print_r($return);
Example #4
0
 private function _importApi($apiInfo, $conn)
 {
     $host = $conn['host'];
     $key = $conn['key'];
     $secret = $conn['secret'];
     $requestParams = ['url' => $apiInfo['url']];
     $caller = new PrismLibDeveloperApiManager($host, $key, $secret);
     return $caller->import($requestParams);
 }