mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-19 22:15:24 +00:00
add vehicle api (#221)
* add vehicle api * Commit from GitHub Actions (Publish APIs & Clients) Co-authored-by: asim <asim@users.noreply.github.com>
This commit is contained in:
12
examples/vehicle/lookup/node/lookupVehicle.js
Executable file
12
examples/vehicle/lookup/node/lookupVehicle.js
Executable file
@@ -0,0 +1,12 @@
|
||||
import * as vehicle from "m3o/vehicle";
|
||||
|
||||
// Lookup a UK vehicle by it's registration number
|
||||
async function LookupVehicle() {
|
||||
let vehicleService = new vehicle.VehicleService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await vehicleService.lookup({
|
||||
registration: "LC60OTA",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await LookupVehicle();
|
||||
Reference in New Issue
Block a user