1.0.2 • Published 3 years ago

lazada-sdk-client v1.0.2

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

(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.

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago