Watch 1 Star 1 Fork 0

azniu / taobaosdkJavaScript

Join us
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
基于node的淘宝客sdk spread retract

Clone or download
laughstorm authored iit
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

Taobao TOP API Node SDK

淘宝开放平台 API Node SDK

Get Started

Rest API Demo

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);
	})

Top Message Demo


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();
    });

Comments ( 0 )

Sign in for post a comment

JavaScript
1
https://gitee.com/azniu/node-lstbk.git
git@gitee.com:azniu/node-lstbk.git
azniu
node-lstbk
taobaosdk
master

Help Search