https://github.com/kaiiyer/emailrep
This is a go library for interacting with the EmailRep service
https://github.com/kaiiyer/emailrep
api email emailrep golang json-api security
Last synced: about 10 hours ago
JSON representation
This is a go library for interacting with the EmailRep service
- Host: GitHub
- URL: https://github.com/kaiiyer/emailrep
- Owner: kaiiyer
- License: mit
- Created: 2020-05-07T10:44:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-27T16:42:19.000Z (about 5 years ago)
- Last Synced: 2024-06-20T00:32:30.950Z (over 1 year ago)
- Topics: api, email, emailrep, golang, json-api, security
- Language: Go
- Homepage: https://emailrep.io/
- Size: 12.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EmailRep
This is a go library for interacting with the [EmailRep](https://emailrep.io) service.
[](https://goreportcard.com/report/github.com/kaiiyer/emailrep)
[](http://godoc.org/github.com/kaiiyer/emailrep)
**Rep** function will return the reputation of the email address passed as the argument
### Install
```bash
go get github.com/kaiiyer/emailrep
```
### Import
```go
import (
"github.com/kaiiyer/emailrep"
)
```
## Example Usage
```go
package main
import (
"github.com/kaiiyer/emailrep"
)
func main() {
var r string
r = emailrep.Rep("bill@microsoft.com")
print(r)
}
```
With this example, the response would be:
```json
{
"email": "bill@microsoft.com",
"reputation": "high",
"suspicious": false,
"references": 79,
"details": {
"blacklisted": false,
"malicious_activity": false,
"malicious_activity_recent": false,
"credentials_leaked": true,
"credentials_leaked_recent": false,
"data_breach": true,
"first_seen": "07/01/2008",
"last_seen": "05/24/2019",
"domain_exists": true,
"domain_reputation": "high",
"new_domain": false,
"days_since_domain_creation": 10341,
"suspicious_tld": false,
"spam": false,
"free_provider": false,
"disposable": false,
"deliverable": true,
"accept_all": true,
"valid_mx": true,
"spoofable": false,
"spf_strict": true,
"dmarc_enforced": true,
"profiles": [
"myspace",
"spotify",
"twitter",
"pinterest",
"flickr",
"linkedin",
"vimeo",
"angellist"
]
}
}
```
**emailrep** also accepts arguments of type `error` that implements the built in `error` interface and the response:
```json
{
"message": "Sorry we got hit by an error!"
}
```
Full API docs can be found [here](https://docs.emailrep.io).