Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toggl/go-freshbooks
This project implements a golang client library for the Freshbooks API
https://github.com/toggl/go-freshbooks
backend
Last synced: 3 months ago
JSON representation
This project implements a golang client library for the Freshbooks API
- Host: GitHub
- URL: https://github.com/toggl/go-freshbooks
- Owner: toggl
- License: bsd-3-clause
- Created: 2014-05-20T09:05:39.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-04T11:15:43.000Z (over 10 years ago)
- Last Synced: 2024-06-21T19:59:07.988Z (8 months ago)
- Topics: backend
- Language: Go
- Size: 168 KB
- Stars: 3
- Watchers: 10
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
go-freshbooks
=====
This project implements a [Go](http://golang.org) client library for the [freshbooks API](http://developers.freshbooks.com/).
Supports token-based and OAuth authentication.Example usage
---------------```go
api := freshbooks.NewApi("<>", "<>")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](https://github.com/tambet/oauthplain) package is used to generate 'Authorization' headers.```go
token := &oauthplain.Token{
ConsumerKey: "<>",
ConsumerSecret: "<>",
OAuthToken: "<>",
OAuthTokenSecret: "<>",
}api := freshbooks.NewApi("<>", token)
```