Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thenicolau/openpix-sdk-go
SDK OpenPix in Golang
https://github.com/thenicolau/openpix-sdk-go
Last synced: 8 days ago
JSON representation
SDK OpenPix in Golang
- Host: GitHub
- URL: https://github.com/thenicolau/openpix-sdk-go
- Owner: thenicolau
- Created: 2022-06-30T18:44:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-30T19:04:38.000Z (over 2 years ago)
- Last Synced: 2024-08-01T21:43:55.653Z (4 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# OpenPix SDK in Golang
## Oficial Documentation
[OpenPix](https://developers.openpix.com.br/)
## Example```go
package mainimport (
"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))
}```