User id from LinkedIn

Shares API seems to be depreciated

To share an organisation post to a personal feed you need to use the new /rest/posts POST API

My body was

{
“author”: “urn:li:person:PERSONID”,
“commentary”: “Sample text Post”,
“visibility”: “PUBLIC”,
“distribution”: {
“feedDistribution”: “MAIN_FEED”,
“targetEntities”: ,
“thirdPartyDistributionChannels”:
},
“lifecycleState”: “PUBLISHED”,
“isReshareDisabledByAuthor”: false,
“reshareContext”: {
“parent”: “INSERT POST URN TO BE SHARED”
}
}

You can get the person id from the /me api

The post URN can be retrieved via the watch posts module

Running the posts API with the following info produces the following output

Wonderful

3 Likes