companyenrich 1.0.0 → 1.0.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/README.md +6 -0
- data/lib/companyenrich/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 104aeadcef2d22fde8ac2d879a3a4c6cf636586890f2711184a8ac2ba604326b
|
|
4
|
+
data.tar.gz: 5f04269b873cba955e6dfa88d9af31ecc4b38050480f7514dbfc46ccefb53165
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec7f5c7493f15bc7ef672af31a29c727dc516a8a4ff149b94254947cd82326f100c9d711ef16347fefbe23d8a1424d6963ca47dc1e8062eaf0725cb65b8d5e3a
|
|
7
|
+
data.tar.gz: bbf5df561c4067c7faad34f3708c8848acec904cd0e22d49dae3b063f3957da132c116ff3badc2ee0265703ad68b54723b6b05c960cb7a35984cef056e5d9854
|
data/README.md
CHANGED
|
@@ -6,6 +6,10 @@ The official Ruby client for the [CompanyEnrich API](https://companyenrich.com):
|
|
|
6
6
|
|
|
7
7
|
It requires Ruby 3.1 or newer and has no runtime dependencies.
|
|
8
8
|
|
|
9
|
+
## API version
|
|
10
|
+
|
|
11
|
+
This SDK uses API v2 for every request. The package version is independent of the API version: SDK 1.x calls `/v2` endpoints. Use `https://api.companyenrich.com` as the base URL; the SDK adds `/v2` to each endpoint.
|
|
12
|
+
|
|
9
13
|
## Install
|
|
10
14
|
|
|
11
15
|
```sh
|
|
@@ -74,6 +78,8 @@ lookup = client.people.find_email(person["id"], domain: "stripe.com")
|
|
|
74
78
|
puts lookup["email"], lookup["certainty"] if lookup["status"] == "found"
|
|
75
79
|
```
|
|
76
80
|
|
|
81
|
+
People filters also accept `state` and `city` IDs from the geo state and city searches. These filters accept a single ID, an array of IDs, or matching rules such as `{ "in": [1], "notIn": [2] }`. Person locations may include `state` and `city` objects when resolved. Company responses may include `reportedIndustry` and `reportedEmployees` alongside the existing industry and employee fields.
|
|
82
|
+
|
|
77
83
|
## Semantic and lookalike search
|
|
78
84
|
|
|
79
85
|
Semantic search finds companies or people from a plain-language description. Lookalike search finds companies similar to ones you already know. A company search can use either mode but not both, and either can be combined with `filter`. `search_all` accepts the same arguments as `search`.
|