Skip to content

🔎 Software development kit for opencars API

License

Notifications You must be signed in to change notification settings

opencars/toolkit

Repository files navigation

OpenCars Toolkit

Docs Go Report Version

Overview

Download opencars toolkit with following command

go get -u github.com/opencars/toolkit

Example

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)
    }

License

Project released under the terms of the MIT license.