CodeHelper.API.LinkedIn is a lightweight and simple .NET Wrapper to let you share posts, url and articles on LinkedIn Including getAuthorID, ShareTextMessage, ShareUrl and ShareImage For more information and a list of endpoints available, please see the detailed documentation pages below.
$ dotnet add package CodeHelper.API.LinkedInCodeHelper.API.LinkedIn is a lightweight and simple .NET Wrapper to let you share posts, url and articles on LinkedIn Including ShareTextMessage and ShareUrl
You can support the work if you want:
using CodeHelper.API.LinkedIn;
LinkedInHelper _helper = new() {AuthorID= "{authorid}", AccessToken = "{accesstoken}" };
await _helper.ShareTextMessage("A first test message shared on LinkedIn");
await _helper.ShareUrl("Check out my updated website", "https://frederik.today/", VisibilityTypes.Public, "Frederik Today", "My Upated Webiste") ;
byte[] _image = File.ReadAllBytes(@"{PATHTOIMAGE}");
await _helper.ShareImage("Test for post", _image, VisibilityTypes.Public, "My Image Title", "MyImage Description");
LinkedIn API uses OAuth2.0 and you need to get your Access Token which you can find via My Apps page https://www.linkedin.com/developers/apps