@@ -354,7 +354,7 @@ const nvPeopleSearch = await linkedapi.account.salesNavigatorSearchPeople({
354354 currentCompanies: [" Tech Solutions" , " Innovatech" ],
355355 previousCompanies: [" FutureCorp" ],
356356 schools: [" Harvard University" , " MIT" ],
357- yearsOfExperience: [" 0-1 " , " 1-2 " , " 3-5 " ],
357+ yearsOfExperience: [" lessThanOne " , " oneToTwo " , " threeToFive " ],
358358 },
359359});
360360```
@@ -371,7 +371,7 @@ Send connection requests to LinkedIn users with optional personalized messages.
371371``` typescript
372372await linkedapi .account .sendConnectionRequest ({
373373 personUrl: " https://www.linkedin.com/in/john-doe" ,
374- message : " Hello! I'd love to connect and discuss opportunities." ,
374+ note : " Hello! I'd love to connect and discuss opportunities." ,
375375});
376376```
377377
@@ -559,7 +559,7 @@ Send messages to LinkedIn users through standard LinkedIn messaging.
559559- ** Returns:** ` Promise<WorkflowHandler<void>> ` - Workflow handler (no result data)
560560
561561``` typescript
562- await linkedapi .account .messaging . sendMessage ({
562+ await linkedapi .account .sendMessage ({
563563 personUrl: " https://www.linkedin.com/in/john-doe" ,
564564 text: " Hello! I saw your post about AI and wanted to connect." ,
565565});
@@ -576,7 +576,7 @@ Sync conversation history with a LinkedIn user for message polling.
576576- ** Related Methods:** Use with ` pollConversations() ` to retrieve message history
577577
578578``` typescript
579- await linkedapi .account .messaging . syncConversation ({
579+ await linkedapi .account .syncConversation ({
580580 personUrl: " https://www.linkedin.com/in/john-doe" ,
581581});
582582```
@@ -591,7 +591,7 @@ Send messages through Sales Navigator with enhanced messaging capabilities.
591591- ** Returns:** ` Promise<WorkflowHandler<void>> ` - Workflow handler (no result data)
592592
593593``` typescript
594- await linkedapi .account .messaging . salesNavigatorSendMessage ({
594+ await linkedapi .account .salesNavigatorSendMessage ({
595595 personUrl: " https://www.linkedin.com/sales/people/ABC123" ,
596596 subject: " Partnership Opportunity" ,
597597 text: " Hi! I'd love to discuss potential collaboration opportunities." ,
@@ -608,7 +608,7 @@ Sync Sales Navigator conversation for message polling.
608608- ** Returns:** ` Promise<WorkflowHandler<void>> ` - Workflow handler (no result data)
609609
610610``` typescript
611- await linkedapi .account .messaging . salesNavigatorSyncConversation ({
611+ await linkedapi .account .salesNavigatorSyncConversation ({
612612 personUrl: " https://www.linkedin.com/sales/people/ABC123" ,
613613});
614614```
@@ -624,7 +624,7 @@ Poll multiple conversations to retrieve message history and new messages.
624624- ** Prerequisites:** Must call ` syncConversation() ` or ` salesNavigatorSyncConversation() ` for each person before polling
625625
626626``` typescript
627- const response = await linkedapi .account .messaging . pollConversations ([
627+ const response = await linkedapi .account .pollConversations ([
628628 { personUrl: " https://www.linkedin.com/in/john-doe" , type: " st" },
629629 {
630630 personUrl: " https://www.linkedin.com/sales/people/ABC123" ,
@@ -835,7 +835,7 @@ const peopleSearchWorkflow = await linkedapi.data.searchPeople({
835835 currentCompanies: [" Tech Solutions" , " Innovatech" ],
836836 previousCompanies: [" FutureCorp" ],
837837 schools: [" Harvard University" , " MIT" ],
838- yearsOfExperience: [" 0-1 " , " 1-2 " , " 3-5 " ],
838+ yearsOfExperience: [" lessThanOne " , " oneToTwo " , " threeToFive " ],
839839 },
840840});
841841```
0 commit comments