# topSdk

> Taobao Open API & Message Client.

Latest version **1.1.2** (published 2016-09-10) · 0 weekly downloads

## Install

```sh
npm install topSdk
pnpm add topSdk
yarn add topSdk
bun add topSdk
```

## 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 | 1.1.2 |
| Published | 2016-09-10 |
| First published | 2016-09-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8 |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+6 in 4 direct dependencies) |
| Install scripts | no |
| Author | xuteng.xt@alibaba-inc.com |
| Maintainers | philxu |
| Keywords | top, taobao, open api, top client |

## Links

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

## Dependencies (4)

- [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

## Recent versions

- 1.1.2 (latest) — 2016-09-10

## 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',
                            '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

```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 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
