Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

BoostyLabs/kaminari-go-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kaminari Go SDK

A Golang package for the using Kaminari API.

Installation

go get -u github.com/BoostyLabs/kaminari-go-sdk

Basic Usage

Grab your API token and Secret Key. With that creds and Kaminari's API url you could initialize client.

package main

import (
    "log"

    kaminari "github.com/BoostyLabs/kaminari-go-sdk"
    "github.com/BoostyLabs/kaminari-go-sdk/client"
)

func main() {
    cl, err := client.DefaultClient(&client.Config{
        ApiKey:     "[API_KEY]",
        SecretKey:  "[SECRET_KEY]",
        ApiUrl:     "[API_URL]",
    })
    if err != nil {
    	log.Println(err)
        return	
    }

    balance, err := cl.GetBalance("1")
    if err != nil {
        log.Println(err)
        return
    }

    log.Println("your balance", balance)
}

More examples you could find in client_test.go file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages