A simple GO SDK for interacting with Crypto Unifier API V1.
You can install the package from github:
go get github.com/cryptounifier/go-sdk
You can use the WalletAPI
class for convenient access to API methods. Some are defined in the code:
import (
"github.com/cryptounifier/go-sdk"
"log"
)
client := cryptounifier.WalletAPI("WALLET_KEY", "SECRET_KEY", "btc")
resp, err := client.GetBalance()
if err != nil {
log.Fatal(err)
}
log.Println("message: ", resp.Message)
You can use the MerchantAPI
class for convenient access to API methods. Some are defined in the code:
import (
"github.com/cryptounifier/go-sdk"
"log"
)
client := cryptounifier.MerchantAPI("MERCHANT_KEY", "SECRET_KEY")
resp, err := client.CreateInvoice([...]string{"btc", "bch", "eth"})
if err != nil {
log.Fatal(err)
}
log.Println("message:", resp.Message)
The MIT License (MIT). Please see License File for more information.