padlocal-http
TypeScript icon, indicating that this package has built-in type declarations

0.1.28 • Public • Published

PADLOCAL-HTTP

NPM Version NPM Version TypeScript Stage

关于项目

参考QQ机器人 OneBot 实现标准,为wechat机器人 padloacl 提供通过 HTTP 或 WebSocket 接收事件和调用 API 的能力

如何使用

  • 安装模块
npm install padlocl-http
  • 开箱即用
import PadLocalHTTP from "padlocal-http"

const padLocalOptions = {
    "token": "你的token",//token需要申请
};

const serverOptions = {
    "port": "5030", // http服务请求端口
    "postUrl": "http://127.0.0.1:5031" // 事件回调端口
}

PadLocalHTTP.install(padLocalOptions, serverOptions);

接口文档

接口文档

HTTP-API

消息事件

申请Padlocal token

Padlocal is in beta testing stage, granting tokens to limited partners. If you want to apply, please contact admin for further information.

TODO

  • [ ] 请求参数校验
  • [ ] 增加websocket协议
  • [ ] 多账号管理

Package Sidebar

Install

npm i padlocal-http

Weekly Downloads

33

Version

0.1.28

License

ISC

Unpacked Size

101 kB

Total Files

26

Last publish

Collaborators

  • krapnik