![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
taobao-openapi
Advanced tools
淘宝开放平台SDK,用于node平台
npm install taobao-openapi --save
var Taobao = require("taobao-openapi");
var top = new Taobao({
app_key: "yourAppKey",
app_secret: "yourAppSecret"
});
top.get("taobao.shop.get", {
nick: "nickname",
fields: "sid,cid,nick,title,desc,shop_score"
}, function(err, body){
if(err){
return console.log(err);
}
console.log(body);
});
top.post("taobao.shop.get", {
nick: "nickname",
fields: "sid,cid,nick,title,desc,shop_score"
}, function(err, body){
if(err){
return console.log(err);
}
console.log(body);
});
get请求:
top.get(method, [config], args, callback)
method:api接口名称
config:可选,配置对象,只对当前请求有效
args:接口参数
callback:回调函数,包含错误参数err和响应body
post请求:
top.post(method, [config], args, callback)
method:api接口名称
config:可选,配置对象,只对当前请求有效
args:接口参数
callback:回调函数,包含错误参数err和响应body
获取所有订单:
args = {
start_created: 'yourStartTime',
end_created: 'yourEndTime'
};
top.getAllTrades(args, callback)
args:接口参数
具体参考 文档
1、configure
配置全局参数
top.configure({
session: "yourSession"
});
attribute | description | default |
---|---|---|
session | session | null |
debug | 是否开启沙箱 | false |
https | https请求 | false |
目前只支持json响应格式,不支持xml格式;
目前只支持MD5加密方法;
欢迎fork!
FAQs
api client for taobao open platform
The npm package taobao-openapi receives a total of 6 weekly downloads. As such, taobao-openapi popularity was classified as not popular.
We found that taobao-openapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.