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);
    }
  });

Readme

Keywords

none

Package Sidebar

Install

npm i hupun-open-api-nodejs-sdk

Weekly Downloads

2

Version

1.0.3

License

ISC

Unpacked Size

13.2 kB

Total Files

6

Last publish

Collaborators

  • kilik52