go-clockify

module
v0.0.0-...-5429590 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT

README

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
}

Directories

Path Synopsis
cmd
cli command
pkg
clockify
Package clockify provides primitives to interact with the openapi HTTP API.
Package clockify provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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