예제 #1
0
 public static function fetchAccessDetails($params, $page = 0, $pagesize = 500)
 {
     $gw = new TinyPassGateway();
     if (is_array($params)) {
         $params['page'] = $page;
         $params['pagesize'] = $pagesize;
     }
     return $gw->call("GET", TPConfig::$REST_CONTEXT . "/access/search", $params);
 }
예제 #2
0
 public static function generateDownloadURL($params)
 {
     $gw = new TinyPassGateway();
     try {
         return $gw->call("GET", TPConfig::$REST_CONTEXT . "/download/url", $params);
     } catch (Exception $e) {
         if ($e->getCode() == 404) {
             return null;
         }
         throw $e;
     }
 }