https://github.com/kolanos/dwolla-v2-go
A Go wrapper for the Dwolla API V2
https://github.com/kolanos/dwolla-v2-go
ach api dwolla dwolla-v2 go golang v2 wrapper
Last synced: 4 months ago
JSON representation
A Go wrapper for the Dwolla API V2
- Host: GitHub
- URL: https://github.com/kolanos/dwolla-v2-go
- Owner: kolanos
- License: mit
- Created: 2018-08-25T17:36:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-10-14T06:42:10.000Z (over 3 years ago)
- Last Synced: 2025-03-13T09:13:57.879Z (about 1 year ago)
- Topics: ach, api, dwolla, dwolla-v2, go, golang, v2, wrapper
- Language: Go
- Homepage:
- Size: 170 KB
- Stars: 6
- Watchers: 1
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dwolla-v2-go
[![Build Status][1]][2] [![Code Coverage][3]][4] [![GoDoc][5]][6] [![MIT][7]][8] [![Go Report Card][9]][10]
[1]: https://circleci.com/gh/kolanos/dwolla-v2-go.svg?style=svg
[2]: https://circleci.com/gh/kolanos/dwolla-v2-go
[3]: https://codecov.io/gh/kolanos/dwolla-v2-go/branch/master/graph/badge.svg
[4]: https://codecov.io/gh/kolanos/dwolla-v2-go
[5]: https://godoc.org/github.com/kolanos/dwolla-v2-go?status.svg
[6]: https://godoc.org/github.com/kolanos/dwolla-v2-go
[7]: https://img.shields.io/badge/License-MIT-yellow.svg
[8]: LICENSE
[9]: https://goreportcard.com/badge/github.com/kolanos/dwolla-v2-go
[10]: https://goreportcard.com/report/github.com/kolanos/dwolla-v2-go
A Go wrapper for the Dwolla API V2
## Requirements
* Go v1.11+ (uses modules)
## Install
```bash
go get -u github.com/kolanos/dwolla-v2-go
```
## Usage
To instantiate the client:
```go
package main
import (
"context"
"fmt"
"github.com/kolanos/dwolla-v2-go"
)
var ctx = context.Background()
func main() {
client := dwolla.New("", "", dwolla.Production)
# Or if using the Dwolla sandbox
#client := dwolla.New("", "", dwolla.Sandbox)
}
```
To retrieve dwolla account information:
```go
res, err := client.Account.Retrieve(ctx)
if err != nil {
fmt.Println("Error:", err)
return err
}
fmt.Println("Account ID:", res.ID)
fmt.Println("Account Name:", res.Name)
```
See the [GoDoc](https://godoc.org/github.com/kolanos/dwolla-v2-go) for the full API.
## License
MIT License