@huddle01/server-sdk
Version:
The Huddle01 Server SDK allows you to perform protected admin actions on your server side, like generating peer access tokens and starting and stopping meeting recordings and livestreams.
18 lines (14 loc) • 388 B
JavaScript
;
var chunkCGGVUTEY_cjs = require('./chunk-CGGVUTEY.cjs');
var client = require('hono/client');
var getInfraClient = (data) => {
const obj = {
headers: {
"x-api-key": data.apiKey,
"x-sdk-version": chunkCGGVUTEY_cjs.SDK_VERSION
}
};
const api = client.hc(chunkCGGVUTEY_cjs.INFRA_URL, obj);
return api;
};
exports.getInfraClient = getInfraClient;