mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
* add vehicle api * Commit from GitHub Actions (Publish APIs & Clients) Co-authored-by: asim <asim@users.noreply.github.com>
13 lines
328 B
JavaScript
Executable File
13 lines
328 B
JavaScript
Executable File
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();
|