NodeJS LinkedIn API
Forked version of this API but with additionnal functionnalities waiting for the author to merge the pull request
Installation
yarn add @busshi/linkedin-private-api
Examples
import { Client } from "@busshi/linkedin-private-api";
const receivedScroller = client.invitation.getReceivedInvitations();
const receivedInvitations = await receivedScroller.scrollNext();
for (const invit of receivedInvitations) {
const { entityUrn, profile, sharedSecret } = invit;
const { profileId } = profile;
const invitationId = entityUrn.split(":")[3];
await client.invitation.replyInvitation({
invitationId,
invitationSharedSecret: sharedSecret,
});
}
const conversation = await client.conversation.markConversationAsRead({
conversationId,
});
console.log(conversation);
Notes
Made for learning purposes.