Skip to content

Commit

Permalink
add preferredContacts
Browse files Browse the repository at this point in the history
  • Loading branch information
vs committed Jan 3, 2024
1 parent ae3e314 commit b054efa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ class Outscraper {
return response['data'];
}

async emailsAndContacts(query) {
async emailsAndContacts(query, preferredContacts = null) {
const response = await this.getAPIRequest('/emails-and-contacts', {
query: toArray(query),
preferredContacts: preferredContacts ? toArray(preferredContacts) : null,
async: false,
});
return response['data'];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "outscraper",
"version": "2.0.1",
"version": "2.0.2",
"description": "The library provides convenient access to the Outscraper API. Allows using Outscraper's services from your code. See https://outscraper.com for details.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit b054efa

Please sign in to comment.