nymeria 2.0.5 → 2.0.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d19907d591e3f47da8e55eb490a088c78dec0b8a6413c6927fe97a43993b32b0
4
- data.tar.gz: 07b999cb5b665ae45ce7e7d311451a694dae7f4f38c6eabe0ee99d11697786b3
3
+ metadata.gz: e5d1ab8036c82b615cc34daec706bfd0f299e9f50dcd3b5a712c4bcd2128bd89
4
+ data.tar.gz: d42efc4751ff02fd1def7490f78091cdb6a472d278f6b5d376dce03039b7dd1f
5
5
  SHA512:
6
- metadata.gz: facf71b95bf14f4547896ce2bb9659309219ef0c8c8b310591fca70469a439901d6df554861b72ac62d46bab03b67473a2646781c77c7e8be52f7d54be1eacd4
7
- data.tar.gz: 6f2f70443a5841bd2b08bd0d46564bbcbd230b44b65c3a0385638b3d5545157f7e6fd3191a359b1810d876e06f91d84e3fbe6ed6c3cd11ef9e9fd35c2dccd212
6
+ metadata.gz: c7cb02d869bea8b264eedd55d67a69d813da716f88211bb8dbe9776dfe8f97f126861a73d271f140dc05238b3275d9e4c51ba7cecc3d427af8b3a9ea9961ecb9
7
+ data.tar.gz: ef86caddc648f905f8086de57d129e556ac5bca3b1227644358438dc3ca90e7e85eaf8b860d3f9ee2a2dda2c12e595e43fba4420ab4d5e7e495c00db834f63e0
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ # Ignore any compiled Gems
2
+ *.gem
data/LICENSE.md ADDED
@@ -0,0 +1,19 @@
1
+ Copyright 2022, Nymeria, LLC.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the "Software"), to deal in
5
+ the Software without restriction, including without limitation the rights to
6
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7
+ of the Software, and to permit persons to whom the Software is furnished to do
8
+ so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,148 @@
1
+ # Nymeria
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/nymeria.svg)](https://badge.fury.io/rb/nymeria)
4
+
5
+ The official ruby gem to interact with Nymeria's service. You can use Nymeria to enrich data with
6
+ contact information such as email addresses, phone numbers and social links. The ruby gem wraps
7
+ Nymeria's [public API](https://www.nymeria.io/developers) so you don't have to.
8
+
9
+ ![Nymeria makes finding contact details a breeze.](https://www.nymeria.io/assets/images/marquee.png)
10
+
11
+ ## Usage
12
+
13
+ #### Installation
14
+
15
+ ```bash
16
+ $ gem install nymeria
17
+ ```
18
+
19
+ #### Setting and Checking an API Key
20
+
21
+ ```ruby
22
+ require 'nymeria'
23
+
24
+ Nymeria.API_KEY = 'YOUR API KEY GOES HERE'
25
+ ```
26
+
27
+ All actions that interact with the Nymeria service assume an API key has been
28
+ set and will fail if a key hasn't been set. A key only needs to be set once and
29
+ can be set at the start of your program.
30
+
31
+ #### Verifying an Email Address
32
+
33
+ ```ruby
34
+ require 'nymeria'
35
+
36
+ Nymeria.API_KEY = 'YOUR API KEY GOES HERE'
37
+
38
+ resp = Nymeria::Email.verify('dev@nymeria.io')
39
+
40
+ if resp.status == 200
41
+ puts resp.data['result']
42
+ end
43
+ ```
44
+
45
+ You can verify the deliverability of an email address using Nymeria's service.
46
+ The response will contain a result and tags.
47
+
48
+ The result will either be "valid" or "invalid". The tags will give you
49
+ additional details regarding the email address. For example, the tags will tell
50
+ you if the mail server connection was successful, if the domain's DNS records
51
+ are set up to send and receive email, etc.
52
+
53
+ #### Enriching Profiles
54
+
55
+ ```ruby
56
+ require 'nymeria'
57
+
58
+ Nymeria.API_KEY = 'YOUR API KEY GOES HERE'
59
+
60
+ # You can enrich a single record like this.
61
+ resp = Nymeria::Person.enrich({ profile: 'github.com/nymeriaio' })
62
+
63
+ puts "#{c.data['id']} #{c.data['first_name']} #{c.data['skills']}" if c.status == 200
64
+
65
+ # You can also pass multiple records as an array to do a bulk enrichment.
66
+ resp = Nymeria::Person.bulk_enrich({ params: { email: 'foo@bar.com'} }, { params: { profile: 'linkedin.com/in/wozniaksteve' }})
67
+
68
+ resp.each do |p|
69
+ puts p.dig('data', 'emails')
70
+ end
71
+ ```
72
+
73
+ You can enrich one or more profiles using the enrich function. The enrich
74
+ function takes a hash, or an array of hashes. The most common hash parameters to
75
+ use are `url` and `email`.
76
+
77
+ If you want to enrich an email address you can specify an email and the Nymeria
78
+ service will locate the person and return all associated data for them.
79
+ Likewise, you can specify a supported url via the url parameter if you prefer
80
+ to enrich via a url.
81
+
82
+ At this time, Nymeria supports look ups for the following sites:
83
+
84
+ 1. LinkedIn
85
+ 1. Facebook
86
+ 1. Twitter
87
+ 1. GitHub
88
+
89
+ Please note, if using LinkedIn urls provide the public profile
90
+ LinkedIn url.
91
+
92
+ Two other common parameters are `filter` and `require`. If you wish to filter out
93
+ professional emails (only receive personal emails) you can do so by specifying
94
+ `"professional-emails"` as the filter parameter.
95
+
96
+ The require parameter works by requiring certain kinds of data. For example, you
97
+ can request an enrichment but only receive a result if the profile contains a phone
98
+ number (or an email, personal email, professional email, etc). The following are all
99
+ valid requirements:
100
+
101
+ 1. "email"
102
+ 1. "phone"
103
+ 1. "professional-email"
104
+ 1. "personal-email"
105
+
106
+ You can specify multiple requirements by using a comma between each requirement.
107
+ For example you can require a phone and personal email with: "phone,personal-email"
108
+ as the require parameter.
109
+
110
+ ### Searching for People
111
+
112
+ ```ruby
113
+ require 'nymeria'
114
+
115
+ Nymeria.API_KEY = 'YOUR API KEY GOES HERE'
116
+
117
+ people = Nymeria::Person.search({ query: 'skills:["Ruby on Rails"]' })
118
+
119
+ if people.status == 200
120
+ people.each do |p|
121
+ puts p.dig('data', 'emails')
122
+ end
123
+ end
124
+ ```
125
+
126
+ ## License
127
+
128
+ MIT License
129
+
130
+ Copyright (c) 2022, Nymeria LLC.
131
+
132
+ Permission is hereby granted, free of charge, to any person obtaining a copy
133
+ of this software and associated documentation files (the "Software"), to deal
134
+ in the Software without restriction, including without limitation the rights
135
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
136
+ copies of the Software, and to permit persons to whom the Software is
137
+ furnished to do so, subject to the following conditions:
138
+
139
+ The above copyright notice and this permission notice shall be included in all
140
+ copies or substantial portions of the Software.
141
+
142
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
143
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
144
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
145
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
146
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
147
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
148
+ SOFTWARE.
File without changes
File without changes
File without changes
data/lib/nymeria.rb CHANGED
@@ -1,15 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'nymeria/company.rb'
4
- require 'nymeria/email.rb'
5
- require 'nymeria/person.rb'
3
+ require 'nymeria/company'
4
+ require 'nymeria/email'
5
+ require 'nymeria/person'
6
6
 
7
7
  require 'json'
8
8
  require 'net/http'
9
9
 
10
10
  API_KEY = ''
11
11
  BASE_URL = 'https://www.nymeria.io/api/v4'
12
- USER_AGENT = 'nymeria.rb/2.0.4'
12
+ USER_AGENT = 'nymeria.rb/2.0.6'
13
13
 
14
14
  # Nymeria is our primary module namespace.
15
15
  module Nymeria
data/nymeria.gemspec ADDED
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'nymeria'
5
+ s.version = '2.0.7'
6
+ s.summary = 'Easily interact with Nymeria\'s API to find and verify people\'s contact information.'
7
+ s.description = 'Nymeria enables people to easily discover and connect with people. This gem is a light weight wrapper around Nymeria\'s API. With this gem you can easily interact with the API to find and verify people\'s contact information.'
8
+ s.authors = ['Nymeria, LLC']
9
+ s.email = 'dev@nymeria.io'
10
+ s.files = `git ls-files -z`.split("\x0")
11
+ s.require_paths = ['lib']
12
+ s.homepage = 'https://www.nymeria.io'
13
+ s.metadata = { "source_code_uri" => "https://git.nymeria.io/nymeria.rb" }
14
+ s.license = 'MIT'
15
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nymeria
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nymeria, LLC
@@ -18,10 +18,14 @@ executables: []
18
18
  extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
- - lib/company.rb
22
- - lib/email.rb
21
+ - ".gitignore"
22
+ - LICENSE.md
23
+ - README.md
23
24
  - lib/nymeria.rb
24
- - lib/person.rb
25
+ - lib/nymeria/company.rb
26
+ - lib/nymeria/email.rb
27
+ - lib/nymeria/person.rb
28
+ - nymeria.gemspec
25
29
  homepage: https://www.nymeria.io
26
30
  licenses:
27
31
  - MIT