/** * @param string $method */ private function _apiSystemCall($server, $method, $params = array()) { require_once dirname(__FILE__) . '/ccapiclient.php'; $centovacast_url = $server['url']; $admin_password = $server['secret']; $system = new CCSystemAPIClient($centovacast_url); $system->cc_initialize($centovacast_url); $system->call($method, $admin_password, $params); if (!$system->success) { throw new \Exception($system->error); } return $system->bb_data; }