https://github.com/riquellopes/zerobounce-go-api
ZeroBounce Go integration
https://github.com/riquellopes/zerobounce-go-api
golang integration opensource zerobounce
Last synced: 6 months ago
JSON representation
ZeroBounce Go integration
- Host: GitHub
- URL: https://github.com/riquellopes/zerobounce-go-api
- Owner: riquellopes
- License: mit
- Created: 2018-06-01T22:29:34.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-01-23T18:48:51.000Z (over 4 years ago)
- Last Synced: 2024-06-20T13:29:54.595Z (about 2 years ago)
- Topics: golang, integration, opensource, zerobounce
- Language: Go
- Homepage: https://www.zerobounce.net/
- Size: 17.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/riquellopes/zerobounce-go-api)
[](https://coveralls.io/github/riquellopes/zerobounce-go-api?branch=master)
[](https://goreportcard.com/report/github.com/riquellopes/zerobounce-go-api)
Zerobounce Go Api
-----------------
[Go](http://golang.org) integration for [ZeroBounce](https://www.zerobounce.net/) service.
# Installation #
```sh
go get github.com/riquellopes/zerobounce-go-api
```
# Usage #
First you will need an api token. Can you create an account at [here](https://www.zerobounce.net/members/register/) and get your token.
### Quick start ###
```go
package main
import (
"fmt"
"os"
. "github.com/riquellopes/zerobounce-go-api/zerobounce"
)
func main() {
zero := ZeroBounce{Apikey: os.Getenv("API_KEY_ZERO")}
fmt.Println(zero.Validate("contato@henriquelopes.com.br"))
fmt.Println(zero.ValidateWithip("contato@henriquelopes.com.br"))
fmt.Println(zero.GetCredits())
}
```