Socket
Socket
Sign inDemoInstall

hupun-open-api-nodejs-sdk

Package Overview
Dependencies
8
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hupun-open-api-nodejs-sdk

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


Version published
Maintainers
1
Created

Readme

Source

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

FAQs

Last updated on 12 Jan 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc