fullcontact 0.17.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -1
- data/lib/fullcontact/client/company.rb +7 -3
- data/lib/fullcontact/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0511ec5d123ee579be27b2d4cc9919608359bb4f
|
4
|
+
data.tar.gz: 4e20e39658a65558f47d1f4db79d14bdaa2ea3fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ad94ad6069f479035390cc1b762fc1a9c82d3b206560850917b84348c5d838a03e9ea09d7f6cf3af894a03e4aff3db0ed6f2d1fe3a204c1e23c953e75646758
|
7
|
+
data.tar.gz: ae2f7f6db4eaf8edd77d505fa1e0a09c45f16a70a8bf2f5447a68d430f49f115f36a0afa21565959a7f5c3184aa37c680511da13f591b94cafc7b030f2895fd3
|
data/README.md
CHANGED
@@ -9,6 +9,9 @@ A Ruby wrapper for the [FullContact API](http://www.fullcontact.com/)
|
|
9
9
|
|
10
10
|
Changes
|
11
11
|
-------
|
12
|
+
- 0.18.0
|
13
|
+
- Add ability to query Company API by company name
|
14
|
+
- Fix XML bug in Company API module
|
12
15
|
- 0.17.0 - Upgrade Faraday plugin to ~> 0.11.0
|
13
16
|
- 0.16.0 - Upgrade Faraday plugin to ~> 0.10.0.
|
14
17
|
- 0.15.0 - Add header-based auth via `config.auth_type = :header` control.
|
@@ -17,7 +20,7 @@ Changes
|
|
17
20
|
- Raise `ArgumentError` if query by Facebook ID/username is used.
|
18
21
|
- Remove deprecated messages.
|
19
22
|
- 0.12.0 - `include_headers_in_response = true` includes response headers in returned payload
|
20
|
-
|
23
|
+
- Accessible as `http_headers` in response. Also accessible on thrown errors (e.g. RateLimited)
|
21
24
|
- 0.11.0 - Plisskin transformation can be disabled by specifying a `skip_rubyize = true` in config block.
|
22
25
|
- 0.10.0 - Support for FullContact Company API
|
23
26
|
- 0.9.0 - Removed Rash gem and replaced with Mashify + Plisskin
|
@@ -118,6 +121,16 @@ You can also query the Company API
|
|
118
121
|
=> "FullContact Inc."
|
119
122
|
```
|
120
123
|
|
124
|
+
The Company API also supports searching by company name.
|
125
|
+
Please see [our API documentation](https://www.fullcontact.com/developer/docs/company/#lookup-by-company-name) for more details.
|
126
|
+
```ruby
|
127
|
+
# Get information about a company
|
128
|
+
company1 = FullContact.company(companyName: 'FullContact')
|
129
|
+
|
130
|
+
company1.organization.name
|
131
|
+
=> "FullContact Inc."
|
132
|
+
```
|
133
|
+
|
121
134
|
|
122
135
|
Contributions
|
123
136
|
-------------
|
@@ -1,11 +1,15 @@
|
|
1
1
|
module FullContact
|
2
2
|
class Client
|
3
3
|
module Company
|
4
|
-
# Returns extended information for a given
|
4
|
+
# Returns extended information for a given company (email, phone, twitter or facebook)
|
5
5
|
#
|
6
6
|
def company(options={}, faraday_options={})
|
7
|
-
|
8
|
-
|
7
|
+
url = "company/lookup"
|
8
|
+
if options[:companyName]
|
9
|
+
url = "company/search"
|
10
|
+
end
|
11
|
+
response = get(url, options, false, faraday_options)
|
12
|
+
format.to_s.downcase == 'xml' ? response['response'] : response
|
9
13
|
end
|
10
14
|
end
|
11
15
|
end
|
data/lib/fullcontact/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fullcontact
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- FullContact, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: maruku
|
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
230
|
version: 1.3.6
|
231
231
|
requirements: []
|
232
232
|
rubyforge_project:
|
233
|
-
rubygems_version: 2.
|
233
|
+
rubygems_version: 2.5.1
|
234
234
|
signing_key:
|
235
235
|
specification_version: 4
|
236
236
|
summary: Ruby wrapper for the FullContact API
|