mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-16 12:44:33 +00:00
18 lines
327 B
Go
Executable File
18 lines
327 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"go.m3o.com/vehicle"
|
|
)
|
|
|
|
// Lookup a UK vehicle by it's registration number
|
|
func LookupVehicle() {
|
|
vehicleService := vehicle.NewVehicleService(os.Getenv("M3O_API_TOKEN"))
|
|
rsp, err := vehicleService.Lookup(&vehicle.LookupRequest{
|
|
Registration: "LC60OTA",
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|