hupun-open-api-nodejs-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

hupun-open-api-nodejs-sdk

对接万里牛 ERP 开放接口的 NodeJS SDK。

安装

npm i hupun-open-api-nodejs-sdk --save

使用

import { HupunClient } from "hupun-open-api-nodejs-sdk";

const client = new HupunClient({
  appkey: "xxxxx",
  appsecret: "xxxxxx",
});

client
  .request("erp/base/storage/query", {
    page_no: 1,
    page_size: 1,
  })
  .then((res) => {
    console.log(res.data);
  })
  .catch((e) => {
    if (e.response) {
      console.error(e.response.data);
    } else {
      console.error(e.message);
    }
  });

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    3
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i hupun-open-api-nodejs-sdk

Weekly Downloads

3

Version

1.0.3

License

ISC

Unpacked Size

13.2 kB

Total Files

6

Last publish

Collaborators

  • kilik52