Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 452 Bytes

README.MD

File metadata and controls

33 lines (22 loc) · 452 Bytes

OpenPix SDK in Golang

Oficial Documentation

OpenPix

Example

package main

import (
	"context"
	"encoding/json"
	"log"

	"github.com/GustavoNicolau/openpix-sdk-go/service"
)
func main() {

	op := service.Connect("your-token")

	charge, err := op.GetOneCharge().Do(context.Background())

	if err != nil {
		log.Fatal(err)
	}

	result, _ := json.Marshal(&charge)
	log.Println(string(result))

	
}