sencrop-js-api-client

2.20.0 • Public • Published

sencrop-js-api-client

The Sencrop JavaScript API client

The Sencrop API provides a Swagger file as a documentation.

This project aims to provide a JavaScript API on its basis, automatically generated.

Usage

import API from 'sencrop-js-api-client';

API.getUserDeviceStatistics({
  authorization: 'Bearer yolo-token',
  startDate: '2014-07-01T00:00:00.000Z',
  endDate: '2017-07-21T00:00:00.000Z',
}, {
  // Here goes any Axios request configuration override
  // See: https://github.com/mzabriskie/axios#request-config
  timeout: 40000,
})
.then(response => {
  console.log({
    response,
  });
});

Development

To rebuild the API, erase the swagger file with a newer one and build the SDK again:

npm run import
npm run build
npm run compile

Useful resources

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.20.0
    1
    • latest

Version History

Package Sidebar

Install

npm i sencrop-js-api-client

Weekly Downloads

1

Version

2.20.0

License

MIT

Unpacked Size

1.2 MB

Total Files

24

Last publish

Collaborators

  • nfroidure
  • piitaya
  • oupsla