renamed function

This commit is contained in:
2024-05-09 09:39:55 -07:00
parent c94224a6c9
commit 99e9f4e3e3
3 changed files with 5 additions and 3 deletions
+2
View File
@@ -192,6 +192,8 @@ export default class linkedInAPIClass {
* @param {Array<Number>?} numEmp
* @param {Number?} [start=0]
* @param {boolean?} [castToClass=true] whether the function should return a list of Company classes or just raw JSON
* @param {boolean} [excludeGeneric=false]
* @returns {Promise<[SocialActivityCounts | Group | Company | GenericEntity]>}
*/
async searchCompanies(keyword, numEmp, start = 0, castToClass = true, excludeGeneric = false) {
let urlExt = `variables=(start:${start},origin:GLOBAL_SEARCH_HEADER,query:(keywords:${keyword},flagshipSearchIntent:SEARCH_SRP,queryParameters:List((key:resultType,value:List(COMPANIES))),includeFiltersInResponse:false))`;
+1 -1
View File
@@ -45,7 +45,7 @@ export class Company {
* @param {string} name
* @param {boolean} raw
*/
getEmployees = (name, limit=1000, raw=false) => this.#APIRef.searchEmployees(name, limit, !raw, [this.urn]);
searchEmployees = (name, limit=1000, raw=false) => this.#APIRef.searchEmployees(name, limit, !raw, [this.urn]);
async getInfo() {
const toAdd = `q=universalName&universalName=${this.urn}`;