ynab
CategoryThird-party APIs
SubcategoryThird-party APIs
Stars0
Go wrapper for the YNAB API
About ynab
YNAB API Go Library
This is an UNOFFICIAL Go client for the YNAB API. It covers 100% of the resources made available by the YNAB API.
Installation
go get github.com/brunomvsouza/ynab.go
Usage
To use this client you must obtain an access token from your My Account page of the YNAB web app.
package main
import (
"fmt"
"github.com/brunomvsouza/ynab.go"
)
const accessToken = "bf0cbb14b4330-not-real-3de12e66a389eaafe2"
func main() {
c := ynab.NewClient(accessToken)
budgets, err := c.Budget().GetBudgets()
if err != nil {
panic(err)
}
for _, budget := range budgets {
fmt.Println(budget.Name)
// ...
}
}
See the godoc to see all the available methods with example usage.
Development
- Make sure you have Go 1.19 or later installed
- Run tests with
go test -race ./...
License
BSD-2-Clause
Frequently Asked Questions
What is ynab?
ynab is a Third-party APIs library for the Go programming language. Go wrapper for the YNAB API
How do I install ynab?
Install ynab with the Go module system using `go get brunomvsouza/ynab.go`. Check the repository for the current installation instructions.
What category does ynab belong to?
ynab is listed under Third-party APIs, specifically Third-party APIs.