mailboxvalidator_ruby 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.rdoc +71 -71
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b637a1b81c91c2d5d39febfbd242a4f04d596636eb7dea5e3533533ff847fb7a
|
4
|
+
data.tar.gz: c3a897ce29d895b9e6a62bdb71f53f16e7bb674869aeb810815cdf50534c3a1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a04e5a6f8e03913b79c28c1cab6d52bc5bfdbded6a8e78af3cedc15cf76000e6b84d30216991b07d7665e8997e7b1d8b3dce9731d03d739a0f92ac61d48dbc3
|
7
|
+
data.tar.gz: bb72448ebe759e8a0d681c36bef3d2596db4ba81e66de88b7beea18a1a2cb7427e0b3f424617777c6cdf9b08efaf1d923520a2cab40f9b268d372f45ac286164
|
data/README.rdoc
CHANGED
@@ -1,71 +1,71 @@
|
|
1
|
-
= MailboxValidator
|
2
|
-
|
3
|
-
== Usage
|
4
|
-
|
5
|
-
require "mailboxvalidator_ruby"
|
6
|
-
|
7
|
-
apikey = "MY_API_KEY"
|
8
|
-
email = "example@example.com"
|
9
|
-
|
10
|
-
mbv = MailboxValidator::MBV.new()
|
11
|
-
mbv.apikey = apikey
|
12
|
-
|
13
|
-
mbv.query_single(email)
|
14
|
-
|
15
|
-
if mbv.error != nil
|
16
|
-
puts "Error: #{mbv.error}"
|
17
|
-
elsif mbv.result != nil
|
18
|
-
puts "email_address: #{mbv.result.email_address}"
|
19
|
-
puts "domain: #{mbv.result.domain}"
|
20
|
-
puts "is_free: #{mbv.result.is_free}"
|
21
|
-
puts "is_syntax: #{mbv.result.is_syntax}"
|
22
|
-
puts "is_domain: #{mbv.result.is_domain}"
|
23
|
-
puts "is_smtp: #{mbv.result.is_smtp}"
|
24
|
-
puts "is_verified: #{mbv.result.is_verified}"
|
25
|
-
puts "is_server_down: #{mbv.result.is_server_down}"
|
26
|
-
puts "is_greylisted: #{mbv.result.is_greylisted}"
|
27
|
-
puts "is_disposable: #{mbv.result.is_disposable}"
|
28
|
-
puts "is_suppressed: #{mbv.result.is_suppressed}"
|
29
|
-
puts "is_role: #{mbv.result.is_role}"
|
30
|
-
puts "is_high_risk: #{mbv.result.is_high_risk}"
|
31
|
-
puts "is_catchall: #{mbv.result.is_catchall}"
|
32
|
-
puts "mailboxvalidator_score: #{mbv.result.mailboxvalidator_score}"
|
33
|
-
puts "time_taken: #{mbv.result.time_taken}"
|
34
|
-
puts "status: #{mbv.result.status}"
|
35
|
-
puts "credits_available: #{mbv.result.credits_available}"
|
36
|
-
puts "error_code: #{mbv.result.error_code}"
|
37
|
-
puts "error_message: #{mbv.result.error_message}"
|
38
|
-
end
|
39
|
-
|
40
|
-
mbv.disposable_email(email)
|
41
|
-
|
42
|
-
if mbv.error != nil
|
43
|
-
puts "Error: #{mbv.error}"
|
44
|
-
elsif mbv.result != nil
|
45
|
-
puts "email_address: #{mbv.result.email_address}"
|
46
|
-
puts "is_disposable: #{mbv.result.is_disposable}"
|
47
|
-
puts "credits_available: #{mbv.result.credits_available}"
|
48
|
-
puts "error_code: #{mbv.result.error_code}"
|
49
|
-
puts "error_message: #{mbv.result.error_message}"
|
50
|
-
end
|
51
|
-
|
52
|
-
mbv.free_email(email)
|
53
|
-
|
54
|
-
if mbv.error != nil
|
55
|
-
puts "Error: #{mbv.error}"
|
56
|
-
elsif mbv.result != nil
|
57
|
-
puts "email_address: #{mbv.result.email_address}"
|
58
|
-
puts "is_free: #{mbv.result.is_free}"
|
59
|
-
puts "credits_available: #{mbv.result.credits_available}"
|
60
|
-
puts "error_code: #{mbv.result.error_code}"
|
61
|
-
puts "error_message: #{mbv.result.error_message}"
|
62
|
-
end
|
63
|
-
|
64
|
-
== Dependencies
|
65
|
-
|
66
|
-
* Go to https://www.mailboxvalidator.com/plans#api to sign up for a FREE API plan and you'll be given an API key.
|
67
|
-
|
68
|
-
== Copyright
|
69
|
-
|
70
|
-
Copyright (c)
|
71
|
-
|
1
|
+
= MailboxValidator
|
2
|
+
|
3
|
+
== Usage
|
4
|
+
|
5
|
+
require "mailboxvalidator_ruby"
|
6
|
+
|
7
|
+
apikey = "MY_API_KEY"
|
8
|
+
email = "example@example.com"
|
9
|
+
|
10
|
+
mbv = MailboxValidator::MBV.new()
|
11
|
+
mbv.apikey = apikey
|
12
|
+
|
13
|
+
mbv.query_single(email)
|
14
|
+
|
15
|
+
if mbv.error != nil
|
16
|
+
puts "Error: #{mbv.error}"
|
17
|
+
elsif mbv.result != nil
|
18
|
+
puts "email_address: #{mbv.result.email_address}"
|
19
|
+
puts "domain: #{mbv.result.domain}"
|
20
|
+
puts "is_free: #{mbv.result.is_free}"
|
21
|
+
puts "is_syntax: #{mbv.result.is_syntax}"
|
22
|
+
puts "is_domain: #{mbv.result.is_domain}"
|
23
|
+
puts "is_smtp: #{mbv.result.is_smtp}"
|
24
|
+
puts "is_verified: #{mbv.result.is_verified}"
|
25
|
+
puts "is_server_down: #{mbv.result.is_server_down}"
|
26
|
+
puts "is_greylisted: #{mbv.result.is_greylisted}"
|
27
|
+
puts "is_disposable: #{mbv.result.is_disposable}"
|
28
|
+
puts "is_suppressed: #{mbv.result.is_suppressed}"
|
29
|
+
puts "is_role: #{mbv.result.is_role}"
|
30
|
+
puts "is_high_risk: #{mbv.result.is_high_risk}"
|
31
|
+
puts "is_catchall: #{mbv.result.is_catchall}"
|
32
|
+
puts "mailboxvalidator_score: #{mbv.result.mailboxvalidator_score}"
|
33
|
+
puts "time_taken: #{mbv.result.time_taken}"
|
34
|
+
puts "status: #{mbv.result.status}"
|
35
|
+
puts "credits_available: #{mbv.result.credits_available}"
|
36
|
+
puts "error_code: #{mbv.result.error_code}"
|
37
|
+
puts "error_message: #{mbv.result.error_message}"
|
38
|
+
end
|
39
|
+
|
40
|
+
mbv.disposable_email(email)
|
41
|
+
|
42
|
+
if mbv.error != nil
|
43
|
+
puts "Error: #{mbv.error}"
|
44
|
+
elsif mbv.result != nil
|
45
|
+
puts "email_address: #{mbv.result.email_address}"
|
46
|
+
puts "is_disposable: #{mbv.result.is_disposable}"
|
47
|
+
puts "credits_available: #{mbv.result.credits_available}"
|
48
|
+
puts "error_code: #{mbv.result.error_code}"
|
49
|
+
puts "error_message: #{mbv.result.error_message}"
|
50
|
+
end
|
51
|
+
|
52
|
+
mbv.free_email(email)
|
53
|
+
|
54
|
+
if mbv.error != nil
|
55
|
+
puts "Error: #{mbv.error}"
|
56
|
+
elsif mbv.result != nil
|
57
|
+
puts "email_address: #{mbv.result.email_address}"
|
58
|
+
puts "is_free: #{mbv.result.is_free}"
|
59
|
+
puts "credits_available: #{mbv.result.credits_available}"
|
60
|
+
puts "error_code: #{mbv.result.error_code}"
|
61
|
+
puts "error_message: #{mbv.result.error_message}"
|
62
|
+
end
|
63
|
+
|
64
|
+
== Dependencies
|
65
|
+
|
66
|
+
* Go to https://www.mailboxvalidator.com/plans#api to sign up for a FREE API plan and you'll be given an API key.
|
67
|
+
|
68
|
+
== Copyright
|
69
|
+
|
70
|
+
Copyright (c) 2020 MailboxValidator.com
|
71
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailboxvalidator_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MailboxValidator
|
@@ -10,7 +10,8 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2018-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
13
|
+
description: Enable users to block disposal email, detect free email and validate
|
14
|
+
if an email is valid
|
14
15
|
email: support@mailboxvalidator
|
15
16
|
executables: []
|
16
17
|
extensions: []
|
@@ -19,9 +20,9 @@ files:
|
|
19
20
|
- README.rdoc
|
20
21
|
- lib/mailboxvalidator_ruby.rb
|
21
22
|
- test/test.rb
|
22
|
-
homepage:
|
23
|
+
homepage: https://www.mailboxvalidator.com/ruby
|
23
24
|
licenses:
|
24
|
-
-
|
25
|
+
- MIT
|
25
26
|
metadata: {}
|
26
27
|
post_install_message:
|
27
28
|
rdoc_options: []
|
@@ -39,7 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
40
|
version: '0'
|
40
41
|
requirements: []
|
41
42
|
rubyforge_project:
|
42
|
-
rubygems_version: 2.6.
|
43
|
+
rubygems_version: 2.7.6.2
|
43
44
|
signing_key:
|
44
45
|
specification_version: 4
|
45
46
|
summary: MailboxValidator API wrapper
|