Go to file
2025-01-13 16:14:42 +01:00
cmd/cli wip: initial client generation 2025-01-13 16:14:42 +01:00
pkg/clockify wip: initial client generation 2025-01-13 16:14:42 +01:00
tools wip: initial client generation 2025-01-13 16:14:42 +01:00
.gitignore Initial commit 2025-01-13 13:00:10 +01:00
go.mod wip: initial client generation 2025-01-13 16:14:42 +01:00
go.sum wip: initial client generation 2025-01-13 16:14:42 +01:00
LICENSE Initial commit 2025-01-13 13:00:10 +01:00
README.md wip: initial client generation 2025-01-13 16:14:42 +01:00
slim_api.json wip: initial client generation 2025-01-13 16:14:42 +01:00

Go Clockify

A client library for the Clockify API generated from a reduced OpenAPI Clockify definition.

Usage

To use the client library you need an API endoint and an access token. The access token can be obtained from the Clockify web interface. If you are not using the official Clockify API endpoint, you can use the NewClockifyClientWithBaseURL function to create a client with a custom base URL.

client, err := clockify.NewClockifyClient(accessToken)
if err != nil {
  log.Fatal(err)
}

// Get all workspaces of the accessToken user
resp, err := client.GetWorkspacesOfUserWithResponse(context.Background())
if err != nil {
  // Handle error
}