JavaScript SDK: swarmhit.accounts.posts.listComments(accountId, params)
The comments on a LinkedIn post, most recent first, as this account sees them, so you can pick one to reply to: pass its id as commentId to POST /accounts/{id}/post-comments. Replies to a comment are not listed; replyCount says how many it has. A silent read: no cap is used and nothing is logged as an action. Paginate by passing the returned nextCursor back as cursor. Returns 422 with code: post_not_found when postUrl is not a post's link or this account can't see the post.
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Path Parameters
Query Parameters
The post's LinkedIn link (the forms POST /accounts/{id}/post-comments takes).
Page size, 1–100.
1 <= value <= 10050The nextCursor of the previous page.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/accounts/string/post-comments?postUrl=string"{ "data": [ { "id": "string", "text": "string", "author": { "name": "string", "headline": "string", "profileUrl": "string", "picture": "string" }, "createdAt": "2019-08-24T14:15:22Z", "replyCount": 0, "reactionCount": 0 } ], "paging": { "nextCursor": "string" }}List direct actions GET
**JavaScript SDK:** [`swarmhit.accounts.actions.list(accountId, params?)`](/smart-api/sdk/methods#accounts.actions) The direct actions (connection requests, messages, InMails, profile views, follows, post likes and post comments) taken from this sender account, newest first. A request that failed returned its error and was not logged, so the list only holds actions that went out.
List saved Sales Navigator lists GET
**JavaScript SDK:** [`swarmhit.accounts.salesNavigator.lists(accountId, params?)`](/smart-api/sdk/methods#accounts.salesNavigator) The account's saved Sales Navigator lists — lead lists by default, or account lists with `type=ACCOUNT`. Needs a Sales Navigator seat on the account — otherwise 422 (409 when the account is not connected or can't be used right now).