# subway_sdk

> Taobao Open API & Message Client.

Latest version **1.1.6** (published 2018-12-20) · 0 weekly downloads

## Install

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

## 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.6 |
| Published | 2018-12-20 |
| First published | 2018-12-20 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8 |
| Dependencies | 5 |
| Unpacked size | 38 KB |
| Known vulnerabilities | 0 (+5 in 4 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | smilence86@gmail.com |
| Maintainers | smilence |
| Keywords | top, taobao, open api, top client |

## Links

- npm: https://www.npmjs.com/package/subway_sdk
- Repository: https://github.com/smilence86/topSdk
- Homepage: https://github.com/smilence86/topSdk#readme
- Issues: https://github.com/smilence86/topSdk/issues
- npm.io page: https://npm.io/package/subway_sdk

## Dependencies (5)

- [ws](https://npm.io/package/ws.md) ^6.1.2
- [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
- [json-bigint](https://npm.io/package/json-bigint.md) ~0.3.0

## Recent versions

- 1.1.6 (latest) — 2018-12-20
- 1.1.5 — 2018-12-20
- 1.1.4 — 2018-12-20
- 1.1.3 — 2018-12-20

## README

# Taobao TOP API Node SDK

It's forked from [https://github.com/dbit-xia/topSdk](https://github.com/dbit-xia/topSdk), and fixed some bug.
  
[淘宝开放平台](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/subway_sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
