An open API service indexing awesome lists of open source software.

https://github.com/ibanapi/ibanapi_go

The official IBANAPI.com Go package.
https://github.com/ibanapi/ibanapi_go

Last synced: 3 months ago
JSON representation

The official IBANAPI.com Go package.

Awesome Lists containing this project

README

          

# 💳 IBAN API validation using ibanapi.com for Go

The official Go package for validating IBAN using the ibanapi.com public API

This package offers methods to validate IBAN (full and basic validation) wherein full validation will return the bank information alongside the basic validations.

## How to use
* Get an [API Key](https://ibanapi.com/get-api) from the ibanapi.com website.
* Install the package ``go get github.com/ibanapi/ibanapi_go``
* You can now initialize & use the package as follows
* Import the package ``import ibanapi "github.com/ibanapi/ibanapi_go/ibanapi"``
* For full iban validation
```go
//Get all the IBAN Information
resp, err := ibanapi.ValidateIBAN("API_KEY", "EE471000001020145685")
if err != nil {
panic(err)
}

//Use the results to fit your application logic
fmt.Println(resp.Result)

```
* For basic iban validation
```go
//Get all the basic IBAN Information
resp, err := ibanapi.ValidateIBANBasic("API_KEY", "EE471000001020145685")
if err != nil {
panic(err)
}

//Use the results to fit your application logic
fmt.Println(resp.Result)
```

* To get the balance
```go
//Get the account balance
resp, err := ibanapi.GetBalance("API_KEY")
if err != nil {
panic(err)
}

fmt.Println(resp.Result)
```
## Issue or suggestion
Please feel free to open a bug report or pull request to this repo.

or visit the [iban api website](https://ibanapi.com)