Skip to content

keplr-team/go-onfleet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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