egg-pdd-sdk
1.0.12 • Public • Published
$ npm i egg-pdd-sdk --save
// {app_root}/config/plugin.js
exports.pddSdk = {
enable: true,
package: 'egg-pdd-sdk',
};
// {app_root}/config/config.default.js
exports.pddSdk = {
client_id:"client_id",
client_secret:"client_secret"
};
// 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;
}
MIT
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
1.0.12 | 7 | latest |
Version History
Package Sidebar
Install
Weekly Downloads