youzan / open-sdk-node Goto Github PK
View Code? Open in Web Editor NEW有赞云网关 SDK for Node
Home Page: https://doc.youzanyun.com/doc
License: MIT License
有赞云网关 SDK for Node
Home Page: https://doc.youzanyun.com/doc
License: MIT License
代码:
const token = 'xxxx';
const params = {
item_ids: [606302975, 577755618]
};
const resp = youzanyun.client.call({
api: 'youzan.item.sku.list',
version: '1.0.0',
token,
params,
});
resp.then(function(res) {
console.log(res.data);
});
结果:
{
code: 121000104,
data: null,
success: false,
message: '请求参数非法 itemIds is empty'
}
很明显已赋值参数 item_ids, 但接口返回 itemIds is empty, 求解
{
"library": "digital envelope routines",
"function": "EVP_DecryptFinal_ex",
"reason": "wrong final block length",
"code": "ERR_OSSL_EVP_WRONG_FINAL_BLOCK_LENGTH"
}
rt
代码如下:
const youzanyun = require('youzanyun-sdk');
const token = 'xxx';
const params = {
end_created: '2020-03-05', // 尝试改成:'2020-03-05T00:00:00.000Z' 和 new Date() 依然报错。
start_created: '2020-03-01'
};
const resp = youzanyun.client.call({
api: 'youzan.trades.sold.get',
version: '4.0.1',
token,
params,
});
resp.then(function(res) {
console.log(res.data);
});
返回的结果为:
{ gw_err_resp: { err_msg: '系统异常', err_code: 5001 } }
请问,我应该如何正确设置时间参数,获取指定时间区间的订单?
能否给一个完整的获取订单的调用示例呢?
我想调用这个接口:youzan.trades.sold.get.4.0.1
地址:https://doc.youzanyun.com/doc#/content/API/1-305/detail/api/0/638
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.