emailhunter 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/emailhunter.gemspec +1 -1
- data/lib/email_hunter/api.rb +4 -2
- data/lib/email_hunter/exist.rb +1 -0
- data/lib/email_hunter/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa137bab379d7df31abcabb87843cd69d8f30d11
|
4
|
+
data.tar.gz: b9adf893ea0b3d2945f5e49f4ff8e0bb0a163dff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f51ebe40ecef58a40d65fc7a103e5bd13d48e15fe724b476ab930316031824cf7c3f39f8e2686935c8204adacd93de1a63879a8f6cafbe64b117c1b742d62c30
|
7
|
+
data.tar.gz: a670bde8c08957bed0863258b1d1fd5d729005e11f53cba94e70e50195b6b4f33c9d14351e424c7ae6a8c4c6d353d319ee7c68e4abe7b3b8e66760d6f6a4dbfa
|
data/README.md
CHANGED
@@ -22,7 +22,7 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
```ruby
|
24
24
|
require 'emailhunter'
|
25
|
-
|
25
|
+
email_hunter = EmailHunter.new('Your secret API key')
|
26
26
|
|
27
27
|
```
|
28
28
|
Your secret API key. You can generate it in your dashboard from https://emailhunter.co
|
@@ -30,7 +30,7 @@ Your secret API key. You can generate it in your dashboard from https://emailhun
|
|
30
30
|
## Domain search API
|
31
31
|
Get the list of all the emails from a given domain name. Each email is returned with our source(s), its type (generic or personnal) and the date it was extracted on
|
32
32
|
```ruby
|
33
|
-
result =
|
33
|
+
result = email_hunter.search('stripe.com')
|
34
34
|
```
|
35
35
|
|
36
36
|
## Accessing domain search response
|
@@ -44,7 +44,7 @@ result.emails
|
|
44
44
|
## Email check API
|
45
45
|
Find if a given email exist. If it does, we'll return where it was found.
|
46
46
|
```ruby
|
47
|
-
|
47
|
+
email_hunter.exist('bonjour@firmapi.com')
|
48
48
|
```
|
49
49
|
|
50
50
|
## Accessing email check response
|
data/emailhunter.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
|
13
13
|
spec.summary = %q{A tiny ruby wrapper around Email Hunter API }
|
14
|
-
spec.description = %q{A tiny ruby wrapper around Email Hunter API }
|
14
|
+
spec.description = %q{A tiny ruby wrapper around Email Hunter API. Email Hunter helps sales people reach their targets and increase their sales. }
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
data/lib/email_hunter/api.rb
CHANGED
@@ -5,16 +5,18 @@ require File.expand_path(File.join(File.dirname(__FILE__), 'exist'))
|
|
5
5
|
|
6
6
|
module EmailHunter
|
7
7
|
class Api
|
8
|
+
attr_reader :key
|
9
|
+
|
8
10
|
def initialize(key)
|
9
11
|
@key = key
|
10
12
|
end
|
11
13
|
|
12
14
|
def search(domain)
|
13
|
-
EmailHunter::Search.new(domain,
|
15
|
+
EmailHunter::Search.new(domain, self.key).hunt
|
14
16
|
end
|
15
17
|
|
16
18
|
def exist(email)
|
17
|
-
EmailHunter::Exist.new(email,
|
19
|
+
EmailHunter::Exist.new(email, self.key).hunt
|
18
20
|
end
|
19
21
|
end
|
20
22
|
end
|
data/lib/email_hunter/exist.rb
CHANGED
data/lib/email_hunter/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emailhunter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Davide Santangelo
|
@@ -108,7 +108,8 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
-
description: 'A tiny ruby wrapper around Email Hunter API
|
111
|
+
description: 'A tiny ruby wrapper around Email Hunter API. Email Hunter helps sales
|
112
|
+
people reach their targets and increase their sales. '
|
112
113
|
email:
|
113
114
|
- davide.santangelo@gmail.com
|
114
115
|
executables: []
|