The JavaScript SDK to the JX3API.
yarn add jx3apinpm install jx3apiimport jx3api from "jx3api"
//API接口
const api = new jx3api.api({token:"XXX", ticket:"XXX"})
api.active_calendar("梦江南").then(res=>{
console.log(res)
})
//WS推送消息
const ws = new jx3api.ws({token:"XXX"})
ws.on('1001',(msg)=>{
console.log(msg)
}):)