mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-16 04:54:42 +00:00
* add vehicle api * Commit from GitHub Actions (Publish APIs & Clients) Co-authored-by: asim <asim@users.noreply.github.com>
17 lines
354 B
Go
Executable File
17 lines
354 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/micro/services/clients/go/vehicle"
|
|
"os"
|
|
)
|
|
|
|
// Lookup a UK vehicle by it's registration number
|
|
func LookupVehicle() {
|
|
vehicleService := vehicle.NewVehicleService(os.Getenv("MICRO_API_TOKEN"))
|
|
rsp, err := vehicleService.Lookup(&vehicle.LookupRequest{
|
|
Registration: "LC60OTA",
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|