Skip to content

This is a go library for interacting with the EmailRep service

License

Notifications You must be signed in to change notification settings

kaiiyer/emailrep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EmailRep

This is a go library for interacting with the EmailRep service.

Go Report Card Documentation

Rep function will return the reputation of the email address passed as the argument

Install

go get github.com/kaiiyer/emailrep

Import

import (
	"github.com/kaiiyer/emailrep"
)

Example Usage

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:

  {
  "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:

{
  "message": "Sorry we got hit by an error!"
}

Full API docs can be found here.

About

This is a go library for interacting with the EmailRep service

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages