lazada-sdk-client

1.0.2 • Public • Published

(WIP)lazada-sdk-client

This project is imitated from the Python SDK version. You can use it like python sdk.

How to use?

const { LazadaRequest, LazadaClient } = require('lazada-sdk-client');

const client = new LazadaClient('${you server api}', '${you api key}', '${you api secret}', '${timeout}'); // default timeout is 30000
const request = new LazadaRequest('${you request api endpoint}', '${http method}'); // http method default is post
request.addApiParam('${key}', '${value}');
const res = await client.execute(request, token); // the return is AxiosResponse

It works on normal API. I have not yet written the handling of the file upload interface.

Readme

Keywords

none

Package Sidebar

Install

npm i lazada-sdk-client

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

5.86 kB

Total Files

5

Last publish

Collaborators

  • bigshans