1.1.0 • Published 1 year ago
vysp-js v1.1.0
VYSP JavaScript Client Library
Installation
npm install vysp-js
Usage Examples
import VYSPClient from 'vysp-js';
const client = new VYSPClient({
tenantApiKey: 'your_tenant_key',
gateApiKey: 'your_gate_key',
installationType: 'cloud' // or provide installationUrl if not 'cloud'
});
async function run() {
try {
const inputResponse = await client.checkInput('user1', 'test input data', true);
console.log('Input Check:', inputResponse);
const outputResponse = await client.checkOutput('user1', 'test output data', false);
console.log('Output Check:', outputResponse);
} catch (error) {
console.error('Error:', error.message);
}
}
run();