Skip to content
rl404Public

About

Unofficial golang API wrapper for flip.id.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Flip-go

License: MIT Go Reference

flip-go is unofficial golang API wrapper for flip.id.

For official documentation, go here.

Features

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

Installation

go get github.com/rl404/flip-go

Quick Start

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.

License

MIT License

Copyright (c) 2021 Axel

About

Unofficial golang API wrapper for flip.id.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages