Download opencars toolkit with following command
go get -u github.com/opencars/toolkit
Simple example of toolkit usage
package main
import (
"fmt"
"log"
"os"
"github.com/opencars/toolkit"
)
func main() {
client := toolkit.New("https://api.opencars.app", os.Getenv("OPENCARS_API_KEY"))
operations, err := client.Operation().FindByNumber("АА9359РС")
if err != nil {
log.Fatal(err)
}
for _, op := range operations {
fmt.Println(op)
}
Project released under the terms of the MIT license.