Wondering what’s next for npm?Check out our public roadmap! »

    taobao-topsdk-orign

    1.6.0 • Public • Published

    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,status) {
            console.log(message);
        });
     

    Dingtalk Message Demo

     
    DingtalkClient = require('../index.js').DingtalkClient;
     
    var client = new DingtalkClient({
                                'appkey':'4272',
                                'appsecret':'0ebbcccfee18d7ad1aebc5b135ffa906',
                                'REST_URL':'https://eco.taobao.com/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);
                  })
     

    Install

    npm i taobao-topsdk-orign

    DownloadsWeekly Downloads

    0

    Version

    1.6.0

    License

    none

    Unpacked Size

    61.2 kB

    Total Files

    17

    Last publish

    Collaborators

    • avatar