mirror of
https://github.com/ION606/linkedin-api.git
synced 2026-05-14 22:06:54 +00:00
14 lines
465 B
JavaScript
14 lines
465 B
JavaScript
import LinkedInAPIClass from "../index.js";
|
|
import fs from 'fs';
|
|
|
|
(async () => {
|
|
const LAPI = new LinkedInAPIClass();
|
|
|
|
const o = JSON.parse(fs.readFileSync('config.json'));
|
|
await LAPI.login(o.email, o.password);
|
|
|
|
const c = await LAPI.searchCompanies('microsoft', undefined, 0, true, true);
|
|
|
|
const managers = await c.find(o => (o.name === 'Microsoft')).searchEmployees('manager', 5);
|
|
console.log(managers, managers.length);
|
|
})();undefined |