added filtering for obfuscated 'LinkedIn Member' profiles in search

This commit is contained in:
2024-05-10 17:11:13 -07:00
parent 3e34969d38
commit 5ff71b90e8
2 changed files with 13 additions and 6 deletions
+2 -1
View File
@@ -172,11 +172,12 @@ export default class linkedInAPIClass {
* @param keyword The user to search for
* @param limit Maximum number of results
* @param castToClass Whether to cast the result to LinkedInProfile classes or return raw JSON
* @param filterObfuscated where or not to filter out members with obfuscated profiles ("LinkedIn Member")
* @param currentCompanies Companies to filter by
* @param conDeg Connection degrees to include
* @returns Promise resolving to either an array of LinkedInProfile or raw JSON
*/
searchEmployees(keyword: string, limit?: number, castToClass?: boolean, currentCompanies?: string[], conDeg?: Array<1 | 2 | 3>): Promise<any>;
searchEmployees(keyword: string, limit?: number, castToClass?: boolean, filterObfuscated?: boolean, currentCompanies?: string[], conDeg?: Array<1 | 2 | 3>): Promise<any>;
/**
* Makes a request to the LinkedIn API.