Skip to content

Commit

Permalink
Merge f6937ae into 1291335
Browse files Browse the repository at this point in the history
  • Loading branch information
Nhoya committed Jul 22, 2017
2 parents 1291335 + f6937ae commit e1adf49
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gopwned.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"fmt"
"net/http"
"net/url"
"github.com/badoux/checkmail"
)

type (
Expand Down Expand Up @@ -100,6 +101,11 @@ func (c *Client) getBreaches(resource string, opts url.Values) ([]*Breach, error
}

func (c *Client) GetAllBreachesForAccount(email, domain, truncateResponse string) ([]*Breach, error) {
err := checkmail.ValidateFormat(email)
if err != nil {
fmt.Println("Invalid Mail Format")
return nil, err
}
resource := fmt.Sprintf("breachedaccount/%s", email)

opts := url.Values{}
Expand Down

0 comments on commit e1adf49

Please sign in to comment.