A Go (golang) client library for the Harvest Time Tracking API
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2019-01-14 08:18:07 +01:00
account.go Clean up and simplify JSON and error handling 2017-01-22 21:53:55 +01:00
api_client.go Support task assignments 2019-01-14 08:18:07 +01:00
client.go Add expense support, use float64 2017-05-15 09:11:12 +02:00
contact.go Clean up and simplify JSON and error handling 2017-01-22 21:53:55 +01:00
entry.go Add expense support, use float64 2017-05-15 09:11:12 +02:00
expense.go Add put method on client 2018-04-18 12:47:55 +02:00
expense_category.go Add expense support, use float64 2017-05-15 09:11:12 +02:00
go.mod Go module 2019-01-14 07:41:38 +01:00
go.sum Go module 2019-01-14 07:41:38 +01:00
harvest_date.go Add support for creating expenses 2017-07-09 21:02:22 +02:00
invoice.go Fix Invoice.Find 2017-08-26 10:18:44 +02:00
invoice_test.go Parse CSV line items 2017-08-26 09:54:46 +02:00
LICENSE Initial commit 2014-03-18 14:36:44 -04:00
payment.go Add payment support 2017-06-19 20:53:54 +02:00
person.go Add expense support, use float64 2017-05-15 09:11:12 +02:00
project.go Support task assignments 2019-01-14 08:18:07 +01:00
README.md Rename package to harvest 2016-01-09 17:17:48 +01:00
service.go Add put method on client 2018-04-18 12:47:55 +02:00
task.go Add expense support, use float64 2017-05-15 09:11:12 +02:00
task_assignment.go Support task assignments 2019-01-14 08:18:07 +01:00

harvest

harvest is a Go client library for accessing the Harvest API.

Usage

import "github.com/PeterVerschuure/harvest"

Construct a new Harvest client, then use the client to access the Harvest API.

apiClient := harvest.NewAPIClientWithBasicAuth(
	"YOUR_USERNAME", "YOUR_PASSWORD", "YOUR_SUBDOMAIN")

clients := apiClient.Client.List()
client := apiClient.Client.Find(123123)

people := apiClient.People.List()
person := apiClient.People.Find(123123)

License

This library is distributed under the MIT-style license found in the LICENSE file.