Seayss / eleme

每天大红包 · 最新饿了么红包接口 Node.js 封装

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eleme

GPL-3.0

最新饿了么红包接口 Node.js 封装,仅供技术交流

文件说明

在 JS 项目中使用

npm i github:mtdhb/eleme
const { Eleme } = require("eleme");

const eleme = new Eleme({
  openid: "",
  sign: "",
  sid: ""
});

具体调用方式可参考 example 目录

运行示例

npm i
npx ts-node example/get.ts

API 列表

请在 src 中查看详细的方法注释

  • class Eleme

    • static parseCookie()
    • static cleanCookie()
    • getCookie()
    • getHongbao()
    • getLuckyNumber()
    • changeMobile()
    • loginByMobile()
    • sendMobileCode()
  • class Request

    • static createXShared()
    • send()
  • interface Cookie

    • openid
    • sign
    • sid

About

每天大红包 · 最新饿了么红包接口 Node.js 封装

License:GNU General Public License v3.0


Languages

Language:TypeScript 100.0%