omni_sdk_tyjs2
v1.9.9
Published
- OMNI SDK typeScript 버전입니다.
Downloads
306
Readme
###OMNI SDK TypeScript
- OMNI SDK typeScript 버전입니다.
# 소스를 빌드 합니다.
npm run build
# npm 에 소스를 publish 합니다.
npm publish
OMNI SDK typeScript 사용법
npm install omni_sdk_tyjs2
## node js / serber.js
const { OMNI } = require('omni_sdk_tyjs2');
// Define the authentication parameters
const authParams = {
baseURL: 'http://172.16.0.73:7000',
id: "mira",
password: "12345678"
};
async function authenticate() {
try {
const tokenResponse = await authInstance.auth.getToken();
console.log('Received Token:', tokenResponse);
} catch (error) {
console.error('Failed to get token:', error);
}
}
// Call the authenticate function
authenticate();
node server.js