@easy-front-core-sdk/jos
v1.5.5
Published
核心模块-宙斯开发者中心(京东开放平台)
Downloads
12
Readme
jos
宙斯开放平台(Jingdong Open Service 简称JOS)SDK
Usage
初始化
import { JosCoreFactory } from '@easy-front-core-sdk/jos';
const josCore = JosCoreFactory.putCore({
appKey: 'YOUR_APP_KEY',
appSecret: 'YOUR_APP_SECRET',
});
if (josCore) {
console.log(`jossdk 初始化成功`);
} else {
console.log(`jossdk 初始化失败`);
}
使用
const josCore = JosCoreFactory.getCore('YOUR_APP_KEY');
// POP 订单发货
const params: Pop.Order.ShipmentRequest = {
//...
};
const apiResult = await OrderAPI.JingdongPopOrderShipment(josCore, params, 'ACCESS_TOKEN');
解密功能
单独有sdk:使用方法