Go client for accessing Onfleet API
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)
-
[] 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
- unit testing
- handle errors
- handle rate limit
- add more endpoints