go-onfleet

module
v1.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2023 License: MIT

README

go-onfleet

Go client for accessing Onfleet API

Usage

go get github.com/keplr-team/go-onfleet
import (
    "context"
    "fmt"
    "github.com/keplr-team/go-onfleet/onfleet"
)

client := onfleet.NewClient("API_KEY")
workers, err := client.Workers.List(context.Background(), nil)
if err != nil {
    // do stuff
}
fmt.Printf("%+v\n", workers)
What's inside
  • [] Admins API

    • List admins
  • Workers API

    • Create worker
    • List workers
    • Get workers by location
    • Get single worker
    • Update worker
    • Delete worker
  • Hubs API

    • Create hub
    • List hubs
    • Update hub
  • Teams API

    • Create team
    • List team
    • Update team
    • Get single team
    • Delete team
  • Tasks API

    • Create tasks
    • List tasks
    • Update task
    • Get single task
    • Delete task
What's next
  • unit testing
  • handle errors
  • handle rate limit
  • add more endpoints

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL