API client for Fio Banka written in Go.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.golangci.yml
.travis.yml
LICENSE
README.md
client.go
client_test.go
fio_test.go
formats.go
parser.go
transactions.go
transactions_test.go

README.md

fio GoDoc Build Status Coverage Status Go Report Card

API client for Fio Banka written in Go.

Install

go get github.com/jbub/fio

Docs

https://godoc.org/github.com/jbub/fio

Example

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)
    }
}