šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

CodeHelper.API.LinkedIn

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

CodeHelper.API.LinkedIn

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.

1.0.8
NuGet
Version published
Maintainers
1
Created
Source

# CodeHelper.API.LinkedIn CodeHelper.API.LinkedIn is a lightweight and simple .NET Wrapper to let you share posts, url and articles on LinkedIn Including ShareTextMessage and ShareUrl

Info + Question?

  • Website
  • Twitter
  • LinkedIn Page
  • LinkedIn API
  • NuGet
  • Wiki + Code Examples
  • Get Page Access Info

Support

You can support the work if you want:

Dependencies

Version

  • 1.0.8 : Post Multiple Image to Linkedin (Personal Account & Business Pages)
  • 1.0.6 : Optimized the code
  • 1.0.4 : ShareImage
  • 1.0.2 : GetAuthorID
  • 1.0.0 : ShareTextMessage, ShareUrl

Methods

  • LinkedInHelper.GetAuthorID() : Returns the profile id for the current member, using the accesstoken
  • LinkedInHelper.ShareTextMessage(string textMessage, string visibility = CodeHelper.API.LinkedIn.VisibilityTypes.Public) : Share a simple text message on LinkedIn
  • LinkedInHelper.ShareUrl(string textMessage, string eUrl, string visibility = CodeHelper.API.LinkedIn.VisibilityTypes.Public, string articleTitle=null, string articleDescription=null) : Share an Article or an URL
  • LinkedInHelper.ShareImage(string textMessage, byte[] imageData, string visibility = CodeHelper.API.LinkedIn.VisibilityTypes.Public, string imageTitel= null, string imageDescription=null) : Share an Image

Use of Code

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");

Authentication

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

Usage

Keywords

.net

FAQs

Package last updated on 11 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts