jx3api
v0.0.5
Published
jx3api的js sdk
Readme
jx3api-js
The JavaScript SDK to the JX3API.
Installation
From yarn
yarn add jx3apiFrom npm
npm install jx3apiQuick Start
import 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)
}):)
