代码拉取完成,页面将自动刷新
淘宝开放平台 API Node SDK
ApiClient = require('../index.js').ApiClient;
var client = new ApiClient({
'appkey':'4272',
'appsecret':'0ebbcccfee18d7ad1aebc5b135ffa906',
'REST_URL':'http://api.daily.taobao.net/router/rest'
});
client.execute('taobao.user.get',
{
'fields':'nick,type,sex,location',
'nick':'sandbox_c_1'
},
function (error,response) {
if(!error)
console.log(response);
else
console.log(error);
})
var TmcClient = require('../index.js').TmcClient;
var tmcClient = new TmcClient('453509','5642f38e5840714d77beb0574447f204','default');
tmcClient.connect('ws://mc.api.daily.taobao.net/',
function (message,confirmCb) {
console.log(message);
//如果处理失败,不用调用confirmCb
//如果处理成功
confirmCb();
});
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。