Skip to content
API client for Fio Banka written in Go.
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.drone.yml Drop travis use drone. Feb 28, 2019
LICENSE
README.md
client.go Make SanitizeURL exported. Jun 3, 2018
client_test.go
fio_test.go
formats.go
go.mod
go.sum
parser.go
transactions.go
transactions_test.go

README.md

fio

GoDoc Build 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)
    }
}
You can’t perform that action at this time.