saintsweeto / hunterio Goto Github PK
View Code? Open in Web Editor NEWA PHP wrapper for Hunter.io v2 API
Home Page: https://hunter.io
License: MIT License
A PHP wrapper for Hunter.io v2 API
Home Page: https://hunter.io
License: MIT License
Hi, an awesome wrapper you got here & thanks for the recent update.
Having said that, I'm having trouble getting a good response from Hunter. I always get an empty response when trying to do searchDomain & I hope you could help me out as maybe other newbies might find this useful.
I have a function in my controller that looks like this (my-api-key is set):
public function hunterDS(Request $request) {
$domains = preg_split('/\\s/', $request->input('domain'));
$hunter = new Hunter('my-api-key');
$hunter->searchDomain($domains, ['limit' => 5]);
dd($hunter);
}
As you can notice there's no "domain" key in this query but I can see the requested domain in the browser URI.
Am I adding my api key the correct way or should it be added somewhere in hunter.php?
In the example case of ...
$hunter->findEmailByDomain('forrester.com', 'Brendan Witcher');
... how would you then access the output via PHP?
{
"data": {
"first_name": "brendan",
"last_name": "witcher",
"email": "[email protected]",
"score": 84,
"domain": "forrester.com",
"position": null,
"twitter": null,
"linkedin_url": null,
"phone_number": null,
"company": "Forrester",
"sources": []
},
"meta": {
"params": {
"first_name": null,
"last_name": null,
"full_name": "Bredan Witcher",
"domain": "forrester.com",
"company": null
}
}
}
There are many parameters that need to be passed.
For instance, limit
(otherwise defaults to 10) and offset
to get more results.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.