Files
linkedin-api/tests/companyTests.js
T

16 lines
487 B
JavaScript
Raw Normal View History

2024-05-10 13:27:48 -07:00
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);
2024-05-10 13:50:31 -07:00
const c = await LAPI.searchCompanies('microsoft', [10, 500, 5000], 0, true, true);
console.log(c);
2024-05-10 13:27:48 -07:00
const managers = await c.find(o => (o.name === 'Microsoft')).searchEmployees('manager', 5);
console.log(managers, managers.length);
2024-05-10 13:50:31 -07:00
})();