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); }
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; } }