private static function _getApiBaseUrl() { $cfg = Config::getInstance(); $protocal = $cfg->USE_HTTPS === true ? "https" : "http"; $url = sprintf("%s://%s/%s/", $protocal, $cfg->API_HOST, $cfg->API_VERSION); return $url; }