Skip to content

HelixSpiral/bamboohr

Repository files navigation

bamboohr

An API wrapper for the BambooHR platform

Usage

Create a new client with bamboohr.New()

bbhr, err := bamboohr.New(BBHRNewInput{
  "company": "TestCompany",
  "apikey": "KEYHERE",
})
if err != nil {
  panic(err)
}

Use any of the built-in functions to query against your BambooHR instance.

resp, err := bbhr.GetEmployees()
if err != nil {
    panic(err)
}

fmt.Println(string(resp))