API client for Fio Banka written in Go.
go get github.com/jbub/fio
https://pkg.go.dev/github.com/jbub/fio
package main
import (
"fmt"
"log"
"time"
"context"
"github.com/jbub/fio"
)
func main() {
client := fio.NewClient("mytoken", nil)
opts := fio.ByPeriodOptions{
DateFrom: time.Now(),
DateTo: time.Now(),
}
resp, err := client.Transactions.ByPeriod(context.Background(), opts)
if err != nil {
log.Fatal(err)
}
for _, tx := range resp.Transactions {
fmt.Println(tx.ID)
}
}