@36node/bus-chart-sdk 中文文档教程
@36node/bus-chart-sdk
主要负责历史数据的统计与存储。
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
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- 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