fixed query params format

This commit is contained in:
2024-05-10 13:27:48 -07:00
parent 3a26653c95
commit 1d5f0bcb5d
4 changed files with 40 additions and 18 deletions
+14
View File
@@ -0,0 +1,14 @@
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