@36node/bus-chart-sdk

A SDK boilerplate.

Usage no npm install needed!

<script type="module">
  import 36nodeBusChartSdk from 'https://cdn.skypack.dev/@36node/bus-chart-sdk';
</script>

README

@36node/bus-chart-sdk

version downloads

主要负责历史数据的统计与存储。

Install

yarn add @36node/bus-chart-sdk

Usage

const SDK = require("@36node/bus-chart-sdk");

const sdk = new SDK({ base: "http://localhost:3000/chart/v0", token: "secret" });
sdk.vehicle.listMileages({
      vehicleId: "xxxx",
      query: {
        filter: {
          at: {
            $gt: "2019-01-01",
            $lt: "2020-01-01",
          },
        },
      },
    });

For more usages, see index.test.js.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

@36node/bus-chart-sdk © 36node, Released under the MIT License.

Authored and maintained by 36node with help from contributors (list).

GitHub @36node