open-chat

1.0.1 • Public • Published

open-chat-server-sdk

This app include the following library:

  • crypto-js
  • axios

This app are using the following 3rd party API

Node.js (Install)

Requirements:

  • Node.js
  • npm (Node.js package manager)
npm install open-chat

Usage

import OpenChat from 'OpenChat';

const test = async () => {
  let config = {
    CHATBOT_USER_ID: 'Input CHATBOT_USER_ID ...',
    CHATBOT_TOKEN: 'Input CHATBOT_TOKEN ...',
    CHATBOT_URL: 'Input CHATBOT_URL ...',
    NAVER_CLIENT_ID: 'Input NAVER_CLIENT_ID ...',
    NAVER_SECRET: 'Input NAVER_SECRET ...',
    LANG: 'Kor',
  }
  const openChat = new OpenChat(config);
  let data = await openChat.answerText('input text');
  let data = await openChat.answerVoice('input voice data');
}

How to run unit test

npm install
npm run test

Package Sidebar

Install

npm i open-chat

Weekly Downloads

1

Version

1.0.1

License

none

Unpacked Size

48.9 kB

Total Files

5

Last publish

Collaborators

  • june2