Class: Cufinder::Services
- Inherits:
-
Object
- Object
- Cufinder::Services
- Defined in:
- lib/cufinder_ruby/services.rb
Instance Method Summary collapse
-
#enrich_company(params) ⇒ Object
ENC Service - Enrich Company.
-
#enrich_linkedin_fundraising(params) ⇒ Object
ELF Service - Enrich LinkedIn Fundraising.
-
#enrich_person_profile(params) ⇒ Object
EPP Service - Enrich Person Profile.
-
#extract_b2b_customers(params) ⇒ Object
BCD Service - B2B Customers Finder.
-
#find_company_careers_page(params) ⇒ Object
CCP Service - Company Career Page Finder.
-
#find_company_children(params) ⇒ Object
FCC Service - Find Company Children.
-
#find_company_employees(params) ⇒ Object
CEF Service - Company Employees Finder.
-
#find_company_lookalikes(params) ⇒ Object
FCL Service - Find Company Lookalikes.
-
#find_tech_stack(params) ⇒ Object
FTS Service - Find Tech Stack.
-
#find_work_email(params) ⇒ Object
FWE Service - Find Work Email.
-
#get_annual_revenue(params) ⇒ Object
CAR Service - Company Annual Revenue.
-
#get_company_activities(params) ⇒ Object
CAA Service - Company Activities API.
-
#get_company_business_type(params) ⇒ Object
CBC Service - Company B2B or B2C Checker.
-
#get_company_employee_count(params) ⇒ Object
CEC Service - Company Employee Count.
-
#get_company_locations(params) ⇒ Object
CLO Service - Company Locations.
-
#get_company_mission_statement(params) ⇒ Object
CSC Service - Company Mission Statement.
-
#get_company_name(params) ⇒ Object
DTC Service - Domain to Company.
-
#get_company_snapshot(params) ⇒ Object
CSN Service - Company Snapshot.
-
#get_domain(params) ⇒ Object
CUF Service - Company URL Finder.
-
#get_emails(params) ⇒ Object
DTE Service - Domain to Emails.
-
#get_linkedin_url(params) ⇒ Object
LCUF Service - LinkedIn Company URL Finder.
-
#get_person_by_email(params) ⇒ Object
REL Service - Reverse Email Lookup.
-
#get_phones(params) ⇒ Object
NTP Service - Name to Phones.
-
#get_title_email_phone(params) ⇒ Object
TEP Service - Title Email Phone.
-
#initialize(client) ⇒ Services
constructor
A new instance of Services.
-
#is_saas(params) ⇒ Object
ISC Service - Company Saas Checker.
-
#normalize_address(params) ⇒ Object
Naa Service - Address Normalizer.
-
#normalize_company_name(params) ⇒ Object
NAC Service - Company Name Normalizer.
-
#normalize_phone(params) ⇒ Object
Nao Service - Phone Number Normalizer.
-
#search_companies(params) ⇒ Object
CSE Service - Company Search Engine.
-
#search_company_jobs(params) ⇒ Object
CJA Service - Company Jobs API.
-
#search_local_businesses(params) ⇒ Object
LBS Service - Local Business Search.
-
#search_people(params) ⇒ Object
PSE Service - Person Search Engine.
Constructor Details
#initialize(client) ⇒ Services
Returns a new instance of Services.
7 8 9 |
# File 'lib/cufinder_ruby/services.rb', line 7 def initialize(client) @client = client end |
Instance Method Details
#enrich_company(params) ⇒ Object
ENC Service - Enrich Company
124 125 126 127 128 129 |
# File 'lib/cufinder_ruby/services.rb', line 124 def enrich_company(params) validate_required(params, [:query]) response = @client.post("/enc", params) EncResponse.new(response) end |
#enrich_linkedin_fundraising(params) ⇒ Object
ELF Service - Enrich LinkedIn Fundraising
68 69 70 71 72 73 |
# File 'lib/cufinder_ruby/services.rb', line 68 def enrich_linkedin_fundraising(params) validate_required(params, [:query]) response = @client.post("/elf", params) ElfResponse.new(response) end |
#enrich_person_profile(params) ⇒ Object
EPP Service - Enrich Person Profile
100 101 102 103 104 105 |
# File 'lib/cufinder_ruby/services.rb', line 100 def enrich_person_profile(params) validate_required(params, [:linkedin_url]) response = @client.post("/epp", params) EppResponse.new(response) end |
#extract_b2b_customers(params) ⇒ Object
BCD Service - B2B Customers Finder
169 170 171 172 173 174 |
# File 'lib/cufinder_ruby/services.rb', line 169 def extract_b2b_customers(params) validate_required(params, [:url]) response = @client.post("/bcd", params) BcdResponse.new(response) end |
#find_company_careers_page(params) ⇒ Object
CCP Service - Company Career Page Finder
177 178 179 180 181 182 |
# File 'lib/cufinder_ruby/services.rb', line 177 def find_company_careers_page(params) validate_required(params, [:url]) response = @client.post("/ccp", params) CcpResponse.new(response) end |
#find_company_children(params) ⇒ Object
FCC Service - Find Company Children
84 85 86 87 88 89 |
# File 'lib/cufinder_ruby/services.rb', line 84 def find_company_children(params) validate_required(params, [:query]) response = @client.post("/fcc", params) FccResponse.new(response) end |
#find_company_employees(params) ⇒ Object
CEF Service - Company Employees Finder
233 234 235 236 237 238 |
# File 'lib/cufinder_ruby/services.rb', line 233 def find_company_employees(params) validate_required(params, [:query, :page]) response = @client.post("/cef", params) CefResponse.new(response) end |
#find_company_lookalikes(params) ⇒ Object
FCL Service - Find Company Lookalikes
60 61 62 63 64 65 |
# File 'lib/cufinder_ruby/services.rb', line 60 def find_company_lookalikes(params) validate_required(params, [:query]) response = @client.post("/fcl", params) FclResponse.new(response) end |
#find_tech_stack(params) ⇒ Object
FTS Service - Find Tech Stack
92 93 94 95 96 97 |
# File 'lib/cufinder_ruby/services.rb', line 92 def find_tech_stack(params) validate_required(params, [:query]) response = @client.post("/fts", params) FtsResponse.new(response) end |
#find_work_email(params) ⇒ Object
FWE Service - Find Work Email
108 109 110 111 112 113 |
# File 'lib/cufinder_ruby/services.rb', line 108 def find_work_email(params) validate_required(params, [:linkedin_url]) response = @client.post("/fwe", params) FweResponse.new(response) end |
#get_annual_revenue(params) ⇒ Object
CAR Service - Company Annual Revenue
76 77 78 79 80 81 |
# File 'lib/cufinder_ruby/services.rb', line 76 def get_annual_revenue(params) validate_required(params, [:query]) response = @client.post("/car", params) CarResponse.new(response) end |
#get_company_activities(params) ⇒ Object
CAA Service - Company Activities API
249 250 251 252 253 254 |
# File 'lib/cufinder_ruby/services.rb', line 249 def get_company_activities(params) validate_required(params, [:query, :page]) response = @client.post("/caa", params) CaaResponse.new(response) end |
#get_company_business_type(params) ⇒ Object
CBC Service - Company B2B or B2C Checker
193 194 195 196 197 198 |
# File 'lib/cufinder_ruby/services.rb', line 193 def get_company_business_type(params) validate_required(params, [:url]) response = @client.post("/cbc", params) CbcResponse.new(response) end |
#get_company_employee_count(params) ⇒ Object
CEC Service - Company Employee Count
132 133 134 135 136 137 |
# File 'lib/cufinder_ruby/services.rb', line 132 def get_company_employee_count(params) validate_required(params, [:query]) response = @client.post("/cec", params) CecResponse.new(response) end |
#get_company_locations(params) ⇒ Object
CLO Service - Company Locations
140 141 142 143 144 145 |
# File 'lib/cufinder_ruby/services.rb', line 140 def get_company_locations(params) validate_required(params, [:query]) response = @client.post("/clo", params) CloResponse.new(response) end |
#get_company_mission_statement(params) ⇒ Object
CSC Service - Company Mission Statement
201 202 203 204 205 206 |
# File 'lib/cufinder_ruby/services.rb', line 201 def get_company_mission_statement(params) validate_required(params, [:url]) response = @client.post("/csc", params) CscResponse.new(response) end |
#get_company_name(params) ⇒ Object
DTC Service - Domain to Company
28 29 30 31 32 33 |
# File 'lib/cufinder_ruby/services.rb', line 28 def get_company_name(params) validate_required(params, [:company_website]) response = @client.post("/dtc", params) DtcResponse.new(response) end |
#get_company_snapshot(params) ⇒ Object
CSN Service - Company Snapshot
209 210 211 212 213 214 |
# File 'lib/cufinder_ruby/services.rb', line 209 def get_company_snapshot(params) validate_required(params, [:url]) response = @client.post("/csn", params) CsnResponse.new(response) end |
#get_domain(params) ⇒ Object
CUF Service - Company URL Finder
12 13 14 15 16 17 |
# File 'lib/cufinder_ruby/services.rb', line 12 def get_domain(params) validate_required(params, [:company_name, :country_code]) response = @client.post("/cuf", params) CufResponse.new(response) end |
#get_emails(params) ⇒ Object
DTE Service - Domain to Emails
36 37 38 39 40 41 |
# File 'lib/cufinder_ruby/services.rb', line 36 def get_emails(params) validate_required(params, [:company_website]) response = @client.post("/dte", params) DteResponse.new(response) end |
#get_linkedin_url(params) ⇒ Object
LCUF Service - LinkedIn Company URL Finder
20 21 22 23 24 25 |
# File 'lib/cufinder_ruby/services.rb', line 20 def get_linkedin_url(params) validate_required(params, [:company_name]) response = @client.post("/lcuf", params) LcufResponse.new(response) end |
#get_person_by_email(params) ⇒ Object
REL Service - Reverse Email Lookup
52 53 54 55 56 57 |
# File 'lib/cufinder_ruby/services.rb', line 52 def get_person_by_email(params) validate_required(params, [:email]) response = @client.post("/rel", params) RelResponse.new(response) end |
#get_phones(params) ⇒ Object
NTP Service - Name to Phones
44 45 46 47 48 49 |
# File 'lib/cufinder_ruby/services.rb', line 44 def get_phones(params) validate_required(params, [:company_name]) response = @client.post("/ntp", params) NtpResponse.new(response) end |
#get_title_email_phone(params) ⇒ Object
TEP Service - Title Email Phone
116 117 118 119 120 121 |
# File 'lib/cufinder_ruby/services.rb', line 116 def get_title_email_phone(params) validate_required(params, [:full_name, :company]) response = @client.post("/tep", params) TepResponse.new(response) end |
#is_saas(params) ⇒ Object
ISC Service - Company Saas Checker
185 186 187 188 189 190 |
# File 'lib/cufinder_ruby/services.rb', line 185 def is_saas(params) validate_required(params, [:url]) response = @client.post("/isc", params) IscResponse.new(response) end |
#normalize_address(params) ⇒ Object
Naa Service - Address Normalizer
225 226 227 228 229 230 |
# File 'lib/cufinder_ruby/services.rb', line 225 def normalize_address(params) validate_required(params, [:address]) response = @client.post("/naa", params) NaaResponse.new(response) end |
#normalize_company_name(params) ⇒ Object
NAC Service - Company Name Normalizer
241 242 243 244 245 246 |
# File 'lib/cufinder_ruby/services.rb', line 241 def normalize_company_name(params) validate_required(params, [:company]) response = @client.post("/nac", params) NacResponse.new(response) end |
#normalize_phone(params) ⇒ Object
Nao Service - Phone Number Normalizer
217 218 219 220 221 222 |
# File 'lib/cufinder_ruby/services.rb', line 217 def normalize_phone(params) validate_required(params, [:phone]) response = @client.post("/nao", params) NaoResponse.new(response) end |
#search_companies(params) ⇒ Object
CSE Service - Company Search Engine
148 149 150 151 152 |
# File 'lib/cufinder_ruby/services.rb', line 148 def search_companies(params) # All parameters are optional for CSE response = @client.post("/cse", params) CseResponse.new(response) end |
#search_company_jobs(params) ⇒ Object
CJA Service - Company Jobs API
257 258 259 260 |
# File 'lib/cufinder_ruby/services.rb', line 257 def search_company_jobs(params) response = @client.post("/cja", params) CjaResponse.new(response) end |
#search_local_businesses(params) ⇒ Object
LBS Service - Local Business Search
162 163 164 165 166 |
# File 'lib/cufinder_ruby/services.rb', line 162 def search_local_businesses(params) # All parameters are optional for LBS response = @client.post("/lbs", params) LbsResponse.new(response) end |
#search_people(params) ⇒ Object
PSE Service - Person Search Engine
155 156 157 158 159 |
# File 'lib/cufinder_ruby/services.rb', line 155 def search_people(params) # All parameters are optional for PSE response = @client.post("/pse", params) PseResponse.new(response) end |