New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@axolo/node-nuonuo

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@axolo/node-nuonuo

Nuonuo open api for Node.js

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

node-nuonuo

Nuonuo open api for Node.js.

install

npm install @axolo/node-nuonuo --save

test

npm run test

config

const config = {
  isv: false,
  redirectUri: 'http://localhost:7001/nuonuo/redirect', // required if isv is true
  authTokenUrl: 'https://open.nuonuo.com/accessToken',
  authCodeUrl: 'https://open.nuonuo.com/authorize',
  apiUrl: 'https://sandbox.nuonuocs.cn/open/v1/services',
  appKey: 'sandbox',
  appSecret: 'sandbox',
  userTax: 'user-tax-number', // dynamic if isv is true
  okCode: '0000',
  accessTokenCache: {
    store: 'memory', // if use Redis see cache-manager
    prefix: 'nuonuo',
    ttl: 86400, // 24 hours
    quota: [ 50, 2592000 ], // 50 times / 30 days
  },
};

API

construct(config)

params

  • config: Nuonuo invoice config

return

Nuonuo instance

exec(method, content, userTax)

params

  • method: Nuonuo API method name
  • content: Nuouo private params, JSON.stringify automatic
  • userTax: Nuonuo userTax, required to ISV and optional to Merchant

return

Nuonuo response

Keywords

nodenuonuo

FAQs

Package last updated on 06 Mar 2020

Did you know?

Socket

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