forked from zerobounce/zerobounce-python-api-v1
-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
59 lines (50 loc) · 1.33 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
zerobounce-python-api
=====================
`ZeroBounce <https://www.zerobounce.net>`__ Python API.
The response object allows an attribute-like style access.
.. code:: python
from zerobounce import ZeroBounceAPI
zba = ZeroBounceAPI('yourapikey____________')
print zba.get_credits()
resp1 = zba.validate('flowerjill@aol.com')
resp2 = zba.validatewithip('flowerjill@aol.com')
print resp1
{
"address":"flowerjill@aol.com",
"status":"Valid",
"sub_status":"",
"account":"flowerjill",
"domain":"aol.com",
"disposable":False,
"toxic":False,
"firstname":"Jill",
"lastname":"Stein",
"gender":"female",
"location":None,
"creationdate":None,
"processedat":"2017-04-01 02:48:02.592"
}
print resp2
{
"address":"flowerjill@aol.com",
"status":"Valid",
"sub_status":"",
"account":"flowerjill",
"domain":"aol.com",
"disposable":False,
"toxic":False,
"firstname":"Jill",
"lastname":"Stein",
"gender":"female",
"location":None,
"country":"United States",
"region":"Florida",
"city":"West Palm Beach",
"zipcode":"33401",
"creationdate":None,
"processedat":"2017-04-01 02:48:02.592"
}
print resp.firstname
Jill
print resp2.status
Valid