# topsdk-kai

> Taobao Open API & Message Client.

Latest version **2.0.9** (published 2018-11-19) · 0 weekly downloads

## Install

```sh
npm install topsdk-kai
pnpm add topsdk-kai
yarn add topsdk-kai
bun add topsdk-kai
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.9 |
| Published | 2018-11-19 |
| First published | 2018-11-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8 |
| Dependencies | 6 |
| Unpacked size | 51 KB |
| Known vulnerabilities | 0 (+6 in 4 direct dependencies) |
| Install scripts | no |
| Author | xuteng.xt@alibaba-inc.com |
| Maintainers | jishutuan |
| Keywords | top, taobao, open api, top client |

## Links

- npm: https://www.npmjs.com/package/topsdk-kai
- npm.io page: https://npm.io/package/topsdk-kai

## Dependencies (6)

- [ws](https://npm.io/package/ws.md) ^0.4.32
- [mime](https://npm.io/package/mime.md) ~1.3.4
- [request](https://npm.io/package/request.md) ~2.72.0
- [form-data](https://npm.io/package/form-data.md) ^0.2.0
- [urlencode](https://npm.io/package/urlencode.md) ^1.1.0
- [iconv-lite](https://npm.io/package/iconv-lite.md) ^0.4.7

## Recent versions

- 2.0.9 (latest) — 2018-11-19
- 2.0.8 — 2018-11-19
- 2.0.7 — 2018-11-19
- 2.0.6 — 2018-11-19
- 2.0.5 — 2018-11-16

## README

# Taobao TOP API Node SDK

[淘宝开放平台](http://open.taobao.com/doc2/api_list.htm) API Node SDK

## Get Started

#### Rest API Demo
```js
ApiClient = require('../index.js').ApiClient;

var client = new ApiClient({
                            'appkey':'4272',
                            'appsecret':'0ebbcccfee18d7ad1aebc5b135ffa906',
                            '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

```js

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

```

---
_Source: https://npm.io/package/topsdk-kai · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
