Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chekalsky/go-coingate
Coingate.com Go API client
https://github.com/chekalsky/go-coingate
bitcoin bitcoin-payment coingate cryptocurrencies golang
Last synced: about 1 month ago
JSON representation
Coingate.com Go API client
- Host: GitHub
- URL: https://github.com/chekalsky/go-coingate
- Owner: chekalsky
- License: mit
- Created: 2017-12-22T10:21:58.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-23T23:19:46.000Z (almost 7 years ago)
- Last Synced: 2024-10-12T20:22:38.093Z (2 months ago)
- Topics: bitcoin, bitcoin-payment, coingate, cryptocurrencies, golang
- Language: Go
- Homepage: https://coingate.com
- Size: 14.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Coingate.com Go API client
[![GoDoc](https://godoc.org/github.com/chekalskiy/go-coingate?status.svg)](https://godoc.org/github.com/chekalskiy/go-coingate)
[![Go Report Card](https://goreportcard.com/badge/github.com/chekalskiy/go-coingate)](https://goreportcard.com/report/github.com/chekalskiy/go-coingate)
[![Build Status](https://travis-ci.org/chekalskiy/go-coingate.svg?branch=master)](https://travis-ci.org/chekalskiy/go-coingate)
[![Coverage Status](https://coveralls.io/repos/github/chekalskiy/go-coingate/badge.svg?branch=master)](https://coveralls.io/github/chekalskiy/go-coingate?branch=master)Usage is very simple:
```golang
package mainimport (
"log"
"github.com/chekalskiy/go-coingate"
)func main() {
Coingate := coingate.New(1234, "Key", "Secret", false)
order, err := Coingate.CreateOrder(coingate.OrderRequest{
Price: "10.00",
Currency: "USD",
ReceiveCurrency: "BTC",
})
if err != nil {
log.Fatalln(err)
}
log.Println(order)
}
```## Callbacks
When order status is changing, Coingate sends you a callback on URL which you specified when created the order.
You can see [here](examples/receive_callback_example/main.go) how to handle it. You can get `CallbackData` struct with callback data.