Skip to content

cryptounifier/go-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CryptoUnifier GO SDK

A simple GO SDK for interacting with Crypto Unifier API V1.

Installation

You can install the package from github:

go get github.com/cryptounifier/go-sdk

Usage

Using the Wallet API client

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)

Using the Merchant API client

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)

License

The MIT License (MIT). Please see License File for more information.

About

GO library for CryptoUnifier API V1.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages