Skip to content

This project implements a golang client library for the Freshbooks API

License

Notifications You must be signed in to change notification settings

gdraque/go-freshbooks

 
 

Repository files navigation

go-freshbooks

This project implements a Go client library for the freshbooks API. Supports token-based and OAuth authentication.

Example usage

api := freshbooks.NewApi("<<AccountName>>", "<<AuthToken>>")

users, err := api.Users()
tasks, err := api.Tasks()
clients, err := api.Clients()
projects, err := api.Projects()

OAuth authentication

The FreshBooks API also supports OAuth to authorize applications. oauthplain package is used to generate 'Authorization' headers.

token := &oauthplain.Token{
  ConsumerKey:      "<<ConsumerKey>>",
  ConsumerSecret:   "<<ConsumerSecret>>",
  OAuthToken:       "<<OAuthToken>>",
  OAuthTokenSecret: "<<OAuthTokenSecret>>",
}

api := freshbooks.NewApi("<<AccountName>>", token)

About

This project implements a golang client library for the Freshbooks API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%