コード例 #1
0
ファイル: info.php プロジェクト: shopex/prism-utils
<?php

require_once __DIR__ . '/../../../vendor/autoload.php';
$prismUrl = 'http://localhost:8080';
$adminKey = "wvaxmnjm";
$adminSecret = "5med5cp5o5gyvv4plg5x";
$params = array('key' => 'd2ejn5jj');
$adminUserManager = new PrismLibDeveloperKeyManager($prismUrl, $adminKey, $adminSecret);
$return = $adminUserManager->info($params);
print_r($return);
//Array
//(
//    [Guid] => default-d2ejn5jj
//    [Key] => d2ejn5jj
//    [Secret] => bzz6evnv67ewlnc34nya
//    [ClientId] => qbdlu2p
//    [Notes] => testtest
//    [DomainId] => default
//    [Meta] => Array
//    (
//        [] => true
//    )
//
//    [CreateTime] => 2015-05-11T11:24:10.979+08:00
//    [Expired] => -62135596800
//    [NotifyPushUrl] =>
//)
コード例 #2
0
ファイル: getList.php プロジェクト: shopex/prism-utils
<?php

require_once __DIR__ . '/../../../vendor/autoload.php';
$prismUrl = 'http://localhost:8080';
$adminKey = "wvaxmnjm";
$adminSecret = "5med5cp5o5gyvv4plg5x";
$params = array('app_id' => 'qbdlu2p');
$adminUserManager = new PrismLibDeveloperKeyManager($prismUrl, $adminKey, $adminSecret);
$return = $adminUserManager->getList($params);
print_r($return);
コード例 #3
0
ファイル: delete.php プロジェクト: shopex/prism-utils
<?php

require_once __DIR__ . '/../../../vendor/autoload.php';
$prismUrl = 'http://localhost:8080';
$adminKey = "wvaxmnjm";
$adminSecret = "5med5cp5o5gyvv4plg5x";
$params = array('key' => 'd2ejn5jj');
$adminUserManager = new PrismLibDeveloperKeyManager($prismUrl, $adminKey, $adminSecret);
$return = $adminUserManager->delete($params);
print_r($return);
//Array
//(
//    [Guid] => default-d2ejn5jj
//    [Key] => d2ejn5jj
//    [Secret] => bzz6evnv67ewlnc34nya
//    [ClientId] => qbdlu2p
//    [Notes] => testtest
//    [DomainId] => default
//    [Meta] => Array
//    (
//        [] => true
//    )
//
//    [CreateTime] => 2015-05-11T11:24:10.979+08:00
//    [Expired] => -62135596800
//    [NotifyPushUrl] =>
//)
コード例 #4
0
 private function _createAppKey($appInfo, $conn)
 {
     $host = $conn['host'];
     $key = $conn['key'];
     $secret = $conn['secret'];
     $requestParams = ['app_id' => $appInfo['app_id']];
     $caller = new PrismLibDeveloperKeyManager($host, $key, $secret);
     return $caller->create($requestParams);
 }
コード例 #5
0
ファイル: create.php プロジェクト: shopex/prism-utils
<?php

require_once __DIR__ . '/../../../vendor/autoload.php';
$prismUrl = 'http://localhost:8080';
$adminKey = "wvaxmnjm";
$adminSecret = "5med5cp5o5gyvv4plg5x";
$params = array('app_id' => 'qbdlu2p', 'desc' => 'testtest', 'expired_date' => time() + 360000, 'meta' => null);
$adminUserManager = new PrismLibDeveloperKeyManager($prismUrl, $adminKey, $adminSecret);
$return = $adminUserManager->create($params);
print_r($return);