1.0.8 • Published 3 years ago

top-client v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Top Client

Features

  1. Support promise.
  2. Support upload File with Buffer.
  3. TypeScript support.

Get Started

Default Configurable Options

const client = new TaobaoClient({
  app_key: 'xxxxxx',
  app_secret: 'xxxxxxxxxxxxxxxxxxxxxxx',
  access_token: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx',
});

Most Common Usage

(async function () {
  const { data } = await client.invoke('taobao.time.get', {});
  console.log(data);
})();

Using Upload API

const buffer = fs.readFileSync(path.join(__dirname, '..', '..', 'test', 'test.jpg'));

(async function () {
  const { data } = await client.invoke('taobao.item.propimg.upload', {
      properties: '1627207:14005752001',
      num_iid: '649945196848',
      image: buffer,
    });
  );
  console.log(data);
})();

Contributing

This project welcomes contributions from the community. Contributions are accepted using GitHub pull requests.

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.2

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago