npm

egg-pdd-sdk

1.0.12 • Public • Published

egg-pdd-sdk

Install

$ npm i egg-pdd-sdk --save

Usage

// {app_root}/config/plugin.js
exports.pddSdk = {
  enable: true,
  package: 'egg-pdd-sdk',
};

Configuration

// {app_root}/config/config.default.js
exports.pddSdk = {
  client_id:"client_id",
  client_secret:"client_secret"
};

Example

// controller
async test() {
    const { ctx, service } = this;
    const data = await service.pdd.post({
      type: "pdd.ddk.goods.pid.generate",
      number: 2,
      p_id_name_list: ["3","4"],
    });
    ctx.body=data;
}

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.127latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.127
1.0.110
1.0.100
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.01

Package Sidebar

Install

npm i egg-pdd-sdk

Weekly Downloads

7

Version

1.0.12

License

MIT

Unpacked Size

6.52 kB

Total Files

8

Last publish

Collaborators

  • wshshra