flip-go is unofficial golang API wrapper for flip.id.
For official documentation, go here.
- Get flip account's balance
- Get bank list and info
- Get flip's maintenance status
- Get bank account info and status
- Get city code list
- Get country code list
- Create disbursement (v2)
- Get all disbursement list + filter (v2)
- Get disbursement by id (v2)
- Create special disbursement (v2)
go get github.com/rl404/flip-go
package main
import (
"log"
"github.com/rl404/flip-go"
)
func main() {
// Prepare API key.
secretKey := "abc123"
// Create flip client.
f := flip.NewDefault(secretKey, flip.Sandbox)
// Get your flip's account balance.
balance, code, err := f.GetBalance()
if err != nil {
log.Println(code, err)
return
}
log.Println(code, balance)
}
For more detail config and usage, please go to the documentation.
MIT License
Copyright (c) 2021 Axel