zerobounce-sdk 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +5 -0
- data/Gemfile.lock +3 -1
- data/README.md +100 -7
- data/documentation.md +51 -7
- data/documentation_es.md +50 -6
- data/lib/zerobounce/base_request.rb +2 -2
- data/lib/zerobounce/configuration.rb +2 -0
- data/lib/zerobounce/mock_request.rb +5 -5
- data/lib/zerobounce/request.rb +11 -5
- data/lib/zerobounce/version.rb +1 -1
- data/lib/zerobounce.rb +85 -39
- data/zerobounce.gemspec +1 -0
- metadata +16 -4
- data/output.err +0 -737
- data/output.log +0 -250
data/output.log
DELETED
@@ -1,250 +0,0 @@
|
|
1
|
-
Run options: include {:focus=>true}
|
2
|
-
......get url:
|
3
|
-
https://api.zerobounce.net/v2/validate
|
4
|
-
get params:
|
5
|
-
{:email=>"valid@example.com", :ip_address=>nil, :api_key=>"l4jfh0t39knisuyacmp568x7bqvgr2ed"}
|
6
|
-
|
7
|
-
get response:
|
8
|
-
{"error":"Invalid API key or your account ran out of credits"}
|
9
|
-
|
10
|
-
..get url:
|
11
|
-
https://api.zerobounce.net/v2/validate
|
12
|
-
get params:
|
13
|
-
{:email=>"valid@example.com", :ip_address=>nil, :api_key=>"d1c0448d296846c9b227a5dc3fa8c605"}
|
14
|
-
|
15
|
-
get response:
|
16
|
-
{"address":"valid@example.com","status":"valid","sub_status":"","free_email":false,"did_you_mean":null,"account":null,"domain":null,"domain_age_days":"9692","smtp_provider":"example","mx_found":"true","mx_record":"mx.example.com","firstname":"zero","lastname":"bounce","gender":"male","country":null,"region":null,"city":null,"zipcode":null,"processed_at":"2023-04-26 18:14:07.256"}
|
17
|
-
|
18
|
-
.get url:
|
19
|
-
https://api.zerobounce.net/v2/validate
|
20
|
-
get params:
|
21
|
-
{:email=>"valid@example.com", :ip_address=>"127.0.0.1", :api_key=>"d1c0448d296846c9b227a5dc3fa8c605"}
|
22
|
-
|
23
|
-
get response:
|
24
|
-
{"address":"valid@example.com","status":"valid","sub_status":"","free_email":false,"did_you_mean":null,"account":null,"domain":null,"domain_age_days":"9692","smtp_provider":"example","mx_found":"true","mx_record":"mx.example.com","firstname":"zero","lastname":"bounce","gender":"male","country":null,"region":null,"city":null,"zipcode":null,"processed_at":"2023-04-26 18:14:06.497"}
|
25
|
-
|
26
|
-
..get url:
|
27
|
-
https://api.zerobounce.net/v2/getcredits
|
28
|
-
get params:
|
29
|
-
{:api_key=>"us8yxbpwv63gjtcl42ke5amf1zrhqoid"}
|
30
|
-
|
31
|
-
get response:
|
32
|
-
{"Credits":"-1"}
|
33
|
-
|
34
|
-
.get url:
|
35
|
-
https://api.zerobounce.net/v2/getcredits
|
36
|
-
get params:
|
37
|
-
{:api_key=>"d1c0448d296846c9b227a5dc3fa8c605"}
|
38
|
-
|
39
|
-
get response:
|
40
|
-
{"Credits":"499626"}
|
41
|
-
|
42
|
-
...get url:
|
43
|
-
https://api.zerobounce.net/v2/getapiusage
|
44
|
-
get params:
|
45
|
-
{:start_date=>"2023-04-26", :end_date=>"2023-04-26", :api_key=>"pnotr3zefuxycvgh0qildwabm486952k"}
|
46
|
-
|
47
|
-
get response:
|
48
|
-
{"error":"Invalid API key"}
|
49
|
-
|
50
|
-
.get url:
|
51
|
-
https://api.zerobounce.net/v2/getapiusage
|
52
|
-
get params:
|
53
|
-
{:start_date=>"2023-04-26", :end_date=>"2023-04-26", :api_key=>"d1c0448d296846c9b227a5dc3fa8c605"}
|
54
|
-
|
55
|
-
get response:
|
56
|
-
{"total":0,"status_valid":0,"status_invalid":0,"status_catch_all":0,"status_do_not_mail":0,"status_spamtrap":0,"status_unknown":0,"sub_status_toxic":0,"sub_status_disposable":0,"sub_status_role_based":0,"sub_status_possible_trap":0,"sub_status_global_suppression":0,"sub_status_timeout_exceeded":0,"sub_status_mail_server_temporary_error":0,"sub_status_mail_server_did_not_respond":0,"sub_status_greylisted":0,"sub_status_antispam_system":0,"sub_status_does_not_accept_mail":0,"sub_status_exception_occurred":0,"sub_status_failed_syntax_check":0,"sub_status_mailbox_not_found":0,"sub_status_unroutable_ip_address":0,"sub_status_possible_typo":0,"sub_status_no_dns_entries":0,"sub_status_role_based_catch_all":0,"sub_status_mailbox_quota_exceeded":0,"sub_status_forcible_disconnect":0,"sub_status_failed_smtp_connection":0,"sub_status_mx_forward":0,"sub_status_alternate":0,"sub_status_blocked":0,"sub_status_allowed":0,"start_date":"4/26/2023","end_date":"4/26/2023"}
|
57
|
-
|
58
|
-
..post url:
|
59
|
-
https://bulkapi.zerobounce.net/v2/validatebatch
|
60
|
-
|
61
|
-
post params:
|
62
|
-
{:email_batch=>[{:email_address=>"disposable@example.com", :ip_address=>nil}, {:email_address=>"invalid@example.com", :ip_address=>nil}, {:email_address=>"valid@example.com", :ip_address=>nil}, {:email_address=>"toxic@example.com", :ip_address=>nil}, {:email_address=>"donotmail@example.com", :ip_address=>nil}, {:email_address=>"spamtrap@example.com", :ip_address=>nil}], :api_key=>"we4iha2u1znf893vklsdbg7t5jq0crx6"}
|
63
|
-
|
64
|
-
post response:
|
65
|
-
{"email_batch":[],"errors":[{"email_address":"all","error":"Invalid API Key or your account ran out of credits"}]}
|
66
|
-
|
67
|
-
...post url:
|
68
|
-
https://bulkapi.zerobounce.net/v2/validatebatch
|
69
|
-
|
70
|
-
post params:
|
71
|
-
{:email_batch=>[{:email_address=>"disposable@example.com", :ip_address=>nil}, {:email_address=>"invalid@example.com", :ip_address=>nil}, {:email_address=>"valid@example.com", :ip_address=>nil}, {:email_address=>"toxic@example.com", :ip_address=>nil}, {:email_address=>"donotmail@example.com", :ip_address=>nil}, {:email_address=>"spamtrap@example.com", :ip_address=>nil}], :api_key=>"d1c0448d296846c9b227a5dc3fa8c605"}
|
72
|
-
|
73
|
-
post response:
|
74
|
-
{"email_batch":[{"address":"disposable@example.com","status":"do_not_mail","sub_status":"disposable","free_email":false,"did_you_mean":null,"account":null,"domain":null,"domain_age_days":"9692","smtp_provider":"example","mx_found":"true","mx_record":"mx.example.com","firstname":"zero","lastname":"bounce","gender":"male","country":null,"region":null,"city":null,"zipcode":null,"processed_at":"2023-04-26 18:14:09.668"},{"address":"invalid@example.com","status":"invalid","sub_status":"mailbox_not_found","free_email":false,"did_you_mean":null,"account":null,"domain":null,"domain_age_days":"9692","smtp_provider":"example","mx_found":"true","mx_record":"mx.example.com","firstname":"zero","lastname":"bounce","gender":"male","country":null,"region":null,"city":null,"zipcode":null,"processed_at":"2023-04-26 18:14:09.668"},{"address":"valid@example.com","status":"valid","sub_status":"","free_email":false,"did_you_mean":null,"account":null,"domain":null,"domain_age_days":"9692","smtp_provider":"example","mx_found":"true","mx_record":"mx.example.com","firstname":"zero","lastname":"bounce","gender":"male","country":null,"region":null,"city":null,"zipcode":null,"processed_at":"2023-04-26 18:14:09.668"},{"address":"toxic@example.com","status":"do_not_mail","sub_status":"toxic","free_email":false,"did_you_mean":null,"account":null,"domain":null,"domain_age_days":"9692","smtp_provider":"example","mx_found":"true","mx_record":"mx.example.com","firstname":"zero","lastname":"bounce","gender":"male","country":null,"region":null,"city":null,"zipcode":null,"processed_at":"2023-04-26 18:14:09.668"},{"address":"donotmail@example.com","status":"do_not_mail","sub_status":"role_based","free_email":false,"did_you_mean":null,"account":null,"domain":null,"domain_age_days":"9692","smtp_provider":"example","mx_found":"true","mx_record":"mx.example.com","firstname":"zero","lastname":"bounce","gender":"male","country":null,"region":null,"city":null,"zipcode":null,"processed_at":"2023-04-26 18:14:09.668"},{"address":"spamtrap@example.com","status":"spamtrap","sub_status":"","free_email":false,"did_you_mean":null,"account":null,"domain":null,"domain_age_days":"9692","smtp_provider":"example","mx_found":"true","mx_record":"mx.example.com","firstname":"zero","lastname":"bounce","gender":"male","country":null,"region":null,"city":null,"zipcode":null,"processed_at":"2023-04-26 18:14:09.668"}],"errors":[]}
|
75
|
-
|
76
|
-
..post url:
|
77
|
-
https://bulkapi.zerobounce.net/v2/sendfile
|
78
|
-
|
79
|
-
post params:
|
80
|
-
{:email_address_column=>1, :first_name_column=>2, :last_name_column=>3, :gender_column=>4, :has_header_row=>true, :api_key=>"iu7tg04ylzdnsfo1brp3wev5mk8xjhc6"}
|
81
|
-
|
82
|
-
.post url:
|
83
|
-
https://bulkapi.zerobounce.net/v2/sendfile
|
84
|
-
|
85
|
-
post params:
|
86
|
-
{:email_address_column=>1, :first_name_column=>2, :last_name_column=>3, :gender_column=>4, :has_header_row=>true, :api_key=>"d1c0448d296846c9b227a5dc3fa8c605"}
|
87
|
-
|
88
|
-
post response:
|
89
|
-
{"success":true,"message":"File Accepted","file_name":"validation.csv","file_id":"c1c1f010-0f03-44b2-8535-c1c9eb4ae742"}
|
90
|
-
|
91
|
-
..get url:
|
92
|
-
https://bulkapi.zerobounce.net/v2/filestatus
|
93
|
-
get params:
|
94
|
-
{:file_id=>"c1c1f010-0f03-44b2-8535-c1c9eb4ae742", :api_key=>"rjna1ldqzi3xoes84gtk76ypf0uc9v25"}
|
95
|
-
|
96
|
-
.get url:
|
97
|
-
https://bulkapi.zerobounce.net/v2/filestatus
|
98
|
-
get params:
|
99
|
-
{:file_id=>"invalid-file-id", :api_key=>"d1c0448d296846c9b227a5dc3fa8c605"}
|
100
|
-
|
101
|
-
get response:
|
102
|
-
{"success":false,"message":"File cannot be found."}
|
103
|
-
|
104
|
-
.get url:
|
105
|
-
https://bulkapi.zerobounce.net/v2/filestatus
|
106
|
-
get params:
|
107
|
-
{:file_id=>"c1c1f010-0f03-44b2-8535-c1c9eb4ae742", :api_key=>"d1c0448d296846c9b227a5dc3fa8c605"}
|
108
|
-
|
109
|
-
get response:
|
110
|
-
{"success":true,"file_id":"c1c1f010-0f03-44b2-8535-c1c9eb4ae742","file_name":"validation.csv","upload_date":"2023-04-26T18:14:09Z","file_status":"Queued","complete_percentage":"0%","error_reason":null,"return_url":null}
|
111
|
-
|
112
|
-
..get url:
|
113
|
-
https://bulkapi.zerobounce.net/v2/getfile
|
114
|
-
get params:
|
115
|
-
{:file_id=>"c1c1f010-0f03-44b2-8535-c1c9eb4ae742", :api_key=>"fpuo21id6g3lv70erjwybkt8s9qm5c4h"}
|
116
|
-
|
117
|
-
.get url:
|
118
|
-
https://bulkapi.zerobounce.net/v2/getfile
|
119
|
-
get params:
|
120
|
-
{:file_id=>"invalid-file-id", :api_key=>"d1c0448d296846c9b227a5dc3fa8c605"}
|
121
|
-
|
122
|
-
get response:
|
123
|
-
{"success":false,"message":"File cannot be found."}
|
124
|
-
|
125
|
-
...get url:
|
126
|
-
https://bulkapi.zerobounce.net/v2/deletefile
|
127
|
-
get params:
|
128
|
-
{:file_id=>"c1c1f010-0f03-44b2-8535-c1c9eb4ae742", :api_key=>"ailv2bpthu61mowr40qjz9xfe5ckndys"}
|
129
|
-
|
130
|
-
.get url:
|
131
|
-
https://bulkapi.zerobounce.net/v2/deletefile
|
132
|
-
get params:
|
133
|
-
{:file_id=>"invalid-file-id", :api_key=>"d1c0448d296846c9b227a5dc3fa8c605"}
|
134
|
-
|
135
|
-
get response:
|
136
|
-
{"success":false,"message":"File cannot be found."}
|
137
|
-
|
138
|
-
...post url:
|
139
|
-
https://bulkapi.zerobounce.net/v2/scoring/sendfile
|
140
|
-
|
141
|
-
post params:
|
142
|
-
{:email_address_column=>1, :has_header_row=>true, :api_key=>"qig2u1jmcdy93xoae0p47tvrskzlnhb8"}
|
143
|
-
|
144
|
-
.post url:
|
145
|
-
https://bulkapi.zerobounce.net/v2/scoring/sendfile
|
146
|
-
|
147
|
-
post params:
|
148
|
-
{:email_address_column=>1, :has_header_row=>true, :api_key=>"d1c0448d296846c9b227a5dc3fa8c605"}
|
149
|
-
|
150
|
-
post response:
|
151
|
-
{"success":true,"message":"File Accepted","file_name":"scoring.csv","file_id":"16d89af0-4c43-4425-8834-60c31f3fbb84"}
|
152
|
-
|
153
|
-
..get url:
|
154
|
-
https://bulkapi.zerobounce.net/v2/scoring/filestatus
|
155
|
-
get params:
|
156
|
-
{:file_id=>"16d89af0-4c43-4425-8834-60c31f3fbb84", :api_key=>"dznbj65ktmcauh0fw9gvoepi7y81x4qr"}
|
157
|
-
|
158
|
-
.get url:
|
159
|
-
https://bulkapi.zerobounce.net/v2/scoring/filestatus
|
160
|
-
get params:
|
161
|
-
{:file_id=>"invalid-file-id", :api_key=>"d1c0448d296846c9b227a5dc3fa8c605"}
|
162
|
-
|
163
|
-
get response:
|
164
|
-
{"success":false,"message":"file_id is invalid."}
|
165
|
-
|
166
|
-
.get url:
|
167
|
-
https://bulkapi.zerobounce.net/v2/scoring/filestatus
|
168
|
-
get params:
|
169
|
-
{:file_id=>"16d89af0-4c43-4425-8834-60c31f3fbb84", :api_key=>"d1c0448d296846c9b227a5dc3fa8c605"}
|
170
|
-
|
171
|
-
get response:
|
172
|
-
{"success":true,"file_id":"16d89af0-4c43-4425-8834-60c31f3fbb84","file_name":"scoring.csv","upload_date":"2023-04-26T18:14:11Z","file_status":"Complete","complete_percentage":"100% Complete.","return_url":null}
|
173
|
-
|
174
|
-
..get url:
|
175
|
-
https://bulkapi.zerobounce.net/v2/scoring/getfile
|
176
|
-
get params:
|
177
|
-
{:file_id=>"16d89af0-4c43-4425-8834-60c31f3fbb84", :api_key=>"ezg0kosvf6cqx7iw4y3bjdlpu89har52"}
|
178
|
-
|
179
|
-
.get url:
|
180
|
-
https://bulkapi.zerobounce.net/v2/scoring/getfile
|
181
|
-
get params:
|
182
|
-
{:file_id=>"invalid-file-id", :api_key=>"d1c0448d296846c9b227a5dc3fa8c605"}
|
183
|
-
|
184
|
-
get response:
|
185
|
-
{"success":false,"message":"file_id is invalid."}
|
186
|
-
|
187
|
-
.get url:
|
188
|
-
https://bulkapi.zerobounce.net/v2/scoring/getfile
|
189
|
-
get params:
|
190
|
-
{:file_id=>"16d89af0-4c43-4425-8834-60c31f3fbb84", :api_key=>"d1c0448d296846c9b227a5dc3fa8c605"}
|
191
|
-
|
192
|
-
get response:
|
193
|
-
"email","ZeroBounceQualityScore"
|
194
|
-
"disposable@example.com","0"
|
195
|
-
"invalid@example.com","10"
|
196
|
-
"valid@example.com","10"
|
197
|
-
"toxic@example.com","2"
|
198
|
-
"donotmail@example.com","0"
|
199
|
-
"spamtrap@example.com","0"
|
200
|
-
"abuse@example.com","10"
|
201
|
-
"unknown@example.com","10"
|
202
|
-
"catch_all@example.com","10"
|
203
|
-
"antispam_system@example.com","0"
|
204
|
-
"does_not_accept_mail@example.com","0"
|
205
|
-
"exception_occurred@example.com","0"
|
206
|
-
"failed_smtp_connection@example.com","0"
|
207
|
-
"failed_syntax_check@example.com","0"
|
208
|
-
"forcible_disconnect@example.com","0"
|
209
|
-
"global_suppression@example.com","0"
|
210
|
-
"greylisted@example.com","0"
|
211
|
-
"leading_period_removed@example.com","0"
|
212
|
-
"mail_server_did_not_respond@example.com","0"
|
213
|
-
"mail_server_temporary_error@example.com","0"
|
214
|
-
"mailbox_quota_exceeded@example.com","0"
|
215
|
-
"mailbox_not_found@example.com","0"
|
216
|
-
"no_dns_entries@example.com","0"
|
217
|
-
"possible_trap@example.com","0"
|
218
|
-
"possible_typo@example.com","0"
|
219
|
-
"role_based@example.com","0"
|
220
|
-
"timeout_exceeded@example.com","0"
|
221
|
-
"unroutable_ip_address@example.com","0"
|
222
|
-
"free_email@example.com","0"
|
223
|
-
"role_based_catch_all@example.com","0"
|
224
|
-
|
225
|
-
..get url:
|
226
|
-
https://bulkapi.zerobounce.net/v2/scoring/deletefile
|
227
|
-
get params:
|
228
|
-
{:file_id=>"16d89af0-4c43-4425-8834-60c31f3fbb84", :api_key=>"yniflmd28jae7vr60bogp4t531qx9swc"}
|
229
|
-
|
230
|
-
.get url:
|
231
|
-
https://bulkapi.zerobounce.net/v2/scoring/deletefile
|
232
|
-
get params:
|
233
|
-
{:file_id=>"invalid-file-id", :api_key=>"d1c0448d296846c9b227a5dc3fa8c605"}
|
234
|
-
|
235
|
-
get response:
|
236
|
-
{"success":false,"message":"file_id is invalid."}
|
237
|
-
|
238
|
-
.get url:
|
239
|
-
https://bulkapi.zerobounce.net/v2/scoring/deletefile
|
240
|
-
get params:
|
241
|
-
{:file_id=>"16d89af0-4c43-4425-8834-60c31f3fbb84", :api_key=>"d1c0448d296846c9b227a5dc3fa8c605"}
|
242
|
-
|
243
|
-
get response:
|
244
|
-
{"success":true,"message":"File Deleted","file_name":"scoring.csv","file_id":"16d89af0-4c43-4425-8834-60c31f3fbb84"}
|
245
|
-
|
246
|
-
.
|
247
|
-
|
248
|
-
Finished in 7.04 seconds (files took 0.46029 seconds to load)
|
249
|
-
52 examples, 0 failures
|
250
|
-
|