@@ -25,8 +25,8 @@ An API key is required for this module to function.
2525
2626Go to `<http://www.mailboxvalidator.com/plans#api >`_ to sign up for a FREE API plan and you'll be given an API key.
2727
28- Sample Usage
29- ============
28+ Usage
29+ =====
3030
3131::
3232
@@ -60,6 +60,169 @@ Sample Usage
6060 print('error_code = ' + results['error_code'] + "\n")
6161 print('error_message = ' + results['error_message'] + "\n")
6262
63+ Functions
64+ =========
65+
66+ SingleValidation(api_key)
67+ -------------------------
68+
69+ Creates a new instance of the MailboxValidator object with the API key.
70+
71+ ValidateEmail(email_address)
72+ ---------------------------
73+
74+ Performs email validation on the supplied email address.
75+
76+ Result Fields
77+ =============
78+
79+ email_address
80+ -------------
81+
82+ The input email address.
83+
84+ domain
85+ ------
86+
87+ The domain of the email address.
88+
89+ is_free
90+ -------
91+
92+ Whether the email address is from a free email provider like Gmail or Hotmail.
93+
94+ Return values: True, False
95+
96+ is_syntax
97+ ---------
98+
99+ Whether the email address is syntactically correct.
100+
101+ Return values: True, False
102+
103+ is_domain
104+ ---------
105+
106+ Whether the email address has a valid MX record in its DNS entries.
107+
108+ Return values: True, False, - (- means not applicable)
109+
110+ is_smtp
111+ -------
112+
113+ Whether the mail servers specified in the MX records are responding to connections.
114+
115+ Return values: True, False, - (- means not applicable)
116+
117+ is_verified
118+ -----------
119+
120+ Whether the mail server confirms that the email address actually exist.
121+
122+ Return values: True, False, - (- means not applicable)
123+
124+ is_server_down
125+ --------------
126+
127+ Whether the mail server is currently down or unresponsive.
128+
129+ Return values: True, False, - (- means not applicable)
130+
131+ is_greylisted
132+ -------------
133+
134+ Whether the mail server employs greylisting where an email has to be sent a second time at a later time.
135+
136+ Return values: True, False, - (- means not applicable)
137+
138+ is_disposable
139+ -------------
140+
141+ Whether the email address is a temporary one from a disposable email provider.
142+
143+ Return values: True, False, - (- means not applicable)
144+
145+ is_suppressed
146+ -------------
147+
148+ Whether the email address is in our blacklist.
149+
150+ Return values: True, False, - (- means not applicable)
151+
152+ is_role
153+ -------
154+
155+ Whether the email address is a role-based email address like
[email protected] or
[email protected] .
156+
157+ Return values: True, False, - (- means not applicable)
158+
159+ is_high_risk
160+ ------------
161+
162+ Whether the email address contains high risk keywords.
163+
164+ Return values: True, False, - (- means not applicable)
165+
166+ is_catchall
167+ -----------
168+
169+ Whether the email address is a catch-all address.
170+
171+ Return values: True, False, Unknown, - (- means not applicable)
172+
173+ mailboxvalidator_score
174+ ----------------------
175+
176+ Email address reputation score.
177+
178+ Score > 0.70 means good; score > 0.40 means fair; score <= 0.40 means poor.
179+
180+ time_taken
181+ ----------
182+
183+ The time taken to get the results in seconds.
184+
185+ status
186+ ------
187+
188+ Whether our system think the email address is valid based on all the previous fields.
189+
190+ Return values: True, False
191+
192+ credits_available
193+ -----------------
194+
195+ The number of credits left to perform validations.
196+
197+ error_code
198+ ----------
199+
200+ The error code if there is any error. See error table below.
201+
202+ error_message
203+ -------------
204+
205+ The error message if there is any error. See error table below.
206+
207+ Errors
208+ ======
209+
210+ +------------+---------------+
211+ | error_code | error_message |
212+ +============+===============+
213+ | 100 | Missing parameter. |
214+ +-----+--------------------+
215+ | 101 | API key not found. |
216+ +-----+--------------------+
217+ | 102 | API key disabled. |
218+ +-----+--------------------+
219+ | 103 | API key expired. |
220+ +-----+--------------------+
221+ | 104 | Insufficient credits. |
222+ +-----+--------------------+
223+ | 105 | Unknown error. |
224+ +-----+--------------------+
225+
63226Copyright
64227=========
65228
0 commit comments