Documentation ¶
Index ¶
Constants ¶
View Source
const ( EMAIL_VALID = 0 EMAIL_INVALID = 1 EMAIL_DISPOSABLE = 2 EMAIL_CATCHALL = 3 EMAIL_UNKNOWN = 4 )
View Source
const DEFAULT_API_URL string = "https://api.neverbounce.com/v3"
Variables ¶
This section is empty.
Functions ¶
func GetAccessToken ¶
func GetAccessToken() string
func GetFakeService ¶
func Init ¶
func Init(neverbounce *NeverBounceCli)
Types ¶
type AccessTokenResponse ¶
type NeverBounceCli ¶
type NeverBounceCli struct { ApiUrl string ApiUsername string ApiPassword string AccessToken string TestMode bool }
var NeverBounce *NeverBounceCli
func (*NeverBounceCli) GetAccessToken ¶
func (n *NeverBounceCli) GetAccessToken() string
This function will get the client access token but also store it in the struct to be used in subsequent calls
func (*NeverBounceCli) SetApiUrl ¶
func (n *NeverBounceCli) SetApiUrl(url string)
Sets the API url on the client
func (*NeverBounceCli) VerifyEmail ¶
func (n *NeverBounceCli) VerifyEmail(email string) VerifyEmailResponse
Takes an email and verifies it
type VerifyEmailResponse ¶
type VerifyEmailResponse struct { Success bool `json:"success"` Result int `json:"result"` ResultDetails int `json:"result_details"` Msg string `json:"msg"` }
func VerifyEmail ¶
func VerifyEmail(email string) VerifyEmailResponse
Click to show internal directories.
Click to hide internal directories.