Skip to content
/ brla-sdk Public

This repository is for the development of a BRLA DIGITAL API SDK for Go. For consumers of this SDK, I recommend visiting the official developer api documentation at:

Notifications You must be signed in to change notification settings

odmrs/brla-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BRLA Digital SDK for GOlang

This repository contains the UNOFFICIAL SDK for BRLA Digital, allowing developers to easily integrate their applications with the BRLA Digital platform. This SDK is written in GoLang and provides an easy-to-use interface for accessing BRLA Digital's API resources.

API Documentation

For more details on how to use the official API, consult the official documentation available on the official BRLA Digital website. For the SDK documentation, keep reading this repository.

Pre-requisites

To install the SDK, run the following command:

go get github.com/odmrs/brla-sdk-go

Usage

example of creating a new account:

import (
	"github.com/odmrs/brla-sdk/models"
	sdk "github.com/odmrs/brla-sdk"
)

const (
	sandbox string "https://api.brla.digital:4567"
)

func main() {
	// Create client
	client := sdk.NewCLient(sandbox)

	// Prepare the requires to create account
	account := models.NewAccounta(
		"email@example.com",	// EMAIL
		"your-password",	// PASSWORD
		"your-password",	// CONFIRM PASSWORD
		"99999999999",		// NUMBER
		"CPF",			// TAXIDTYPE 
		"BRLA Digital",  	// BRLA Digital
		"999.999.999-99", 	// CPF 
		"2004-jan-02", 		// Birth Day
		models.Address{
			Cep:        "cep",
			City:       "city",
			State:      "state",
			Street:     "street",
			Number:     "number",
			District:   "district",
			Complement: "complement",
		},
	)

	// Finally, send the request

	err := client.CreateAccount(account)

	// .... handler the erros here ....
}

For more examples access here

About

This repository is for the development of a BRLA DIGITAL API SDK for Go. For consumers of this SDK, I recommend visiting the official developer api documentation at:

Resources

Stars

Watchers

Forks

Languages